soffice --convert-to pdf:writer_pdf_Export
When I used the command to convert docx to PDF, the final PDF result did not meet my expectations. The line spacing of the PDF was significantly smaller than that of docx, resulting in more text per page in the PDF than in docx. The final number of pages in docx was not equal to the number of pages in the PDF. My goal was to completely convert docx to PDF. Is there any way to achieve this?