简体   繁体   English

使用LibreOffice / OpenOffice将docx转换为pdf

[英]Use LibreOffice / OpenOffice to convert docx to pdf

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 ?. 我想使用LibreOffice / OpenOffice命令行将docx文件转换为pdf文件,但是我在努力使用这些工具,是否有人知道如何使用LibreOffice / OpenOffice命令行?

Please, If there's any suggestion, do not hesitate. 请,如果有任何建议,请不要犹豫。

Thank You ! 谢谢 !

This may work. 这可能有效。

soffice --convert-to pdf some.docx --headless

(I've only tried it with .odt files myself, but fingers crossed.) (我自己只用.odt文件尝试过,但是手指交叉了。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM