python - 使用 LibreOffice/OpenOffice 将 docx 转换为 pdf

标签 python command-line libreoffice openoffice.org

我想使用 LibreOffice/OpenOffice 命令行将 docx 文件转换为 pdf 文件,但我很难使用这些工具,有谁知道如何使用 LibreOffice/OpenOffice 命令行吗?

请,如果有任何建议,请不要犹豫。

谢谢!

最佳答案

这可能有效。

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

(我自己只尝试过 .odt 文件,但祈祷吧。)

关于python - 使用 LibreOffice/OpenOffice 将 docx 转换为 pdf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55709687/

相关文章:

python tensorflow 在输入层上使用 dropout

python - Apache 终止 Flask 进程时如何调用函数?

javascript - 是否可以使用 HTML、CSS 和 Javascript 构建 LibreOffice 侧边栏插件

php - LibreOffice 将 PDF 转换为 Word 作为文本框而不是普通文档

python - 如何使用 xlsxwriter 和 python 将图像添加到 xlsx 文件的 header ?

python - Keras 自定义损失函数 - 生存分析删失

python - namedtuple return 和它的 typename 参数有什么区别?

Java:使用命令行参数处理文件名

user-interface - 我应该学习什么语言来创建命令行脚本和 GUI?

regex - 在 Linux 命令行上使用正则表达式查找文件夹后的文件