问题
i want to use LibreOffice / OpenOffice commande line to convert docx file to pdf file, but i'm struggling to use these tool, Is there anyone who knows how to use LibreOffice / OpenOffice commande line ?.
Please, If there's any suggestion, do not hesitate.
Thank You !
回答1:
This may work.
soffice --convert-to pdf some.docx --headless
(I've only tried it with .odt
files myself, but fingers crossed.)
来源:https://stackoverflow.com/questions/55709687/use-libreoffice-openoffice-to-convert-docx-to-pdf