LibreOffice - 多页 pdf 转换为单页 docx 文件

问题描述 投票:0回答:1

我正在尝试使用命令行将 PDF 文件转换为 docx:

soffice --infilter=“writer_pdf_import” --convert-to “docx:MS Word 2007 XML” *.pdf

输入 PDF 包含多个页面。 打开输出 Docx 文件时,各页面的内容会相互重写到一页中。因此,Docx 文件的页数只有 1。

文档部分如下图所示。

我希望 PDF 上的每一页都写入 Docx 中的相应页面。

附加信息:

版本:LibreOffice 7.5.4.2 36ccfdc35048b057fd9854c757a8b67ec53977b6

操作系统:Windows

pdf docx libreoffice
1个回答
0
投票

我在 Libreoffice 7.5.2.2 和 7.5.5.2 上也遇到了同样的问题。

通过卸载 Libreoffice 7 并安装 LibreOffice 6.4.7.2 解决。 该命令现在可以正常工作而不会崩溃:

soffice --convert-to "docx:MS Word 2007 XML" "source_path_to.pdf" --outdir target_folder --infilter="writer_pdf_import" --headless

© www.soinside.com 2019 - 2024. All rights reserved.