在我的 Ubuntu Server 12.04 中,我使用以下命令将目录下的所有 .docx 文件转换为 .pdf 文件:
libreoffice -headless -convert-to pdf:writer_pdf_Export *.docx
Run Code Online (Sandbox Code Playgroud)
我可以合并多个文档并将它们转换为这样的单个 .pdf 文件吗?
例如:
file1.docx
file2.docx
file3.docx
Run Code Online (Sandbox Code Playgroud)
并且输出应该是一个 .pdf 文件,如merged_result.pdf. 我必须从终端执行此操作,因为我在 PHP 中使用它。
此外,我可以添加像正面图像一样的图片吗?我也很感激我可以获得 LibreOffice 终端功能的任何来源;我无法找到我要找的东西。
提前致谢。