You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

LibreOffice多页PDF转Docx时内容重叠为单页的问题求助

LibreOffice PDF转Docx页面重叠问题解决方法

问题说明

执行以下命令批量转换PDF到Docx时,原PDF的多页内容全部重叠在生成的Docx单页中,无法保留分页结构:

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

环境:Windows系统,LibreOffice 7.5.4.2版本,异常效果如图:
文档内容重叠显示

解决方案

  • 修正命令符号格式:命令中的中文引号会导致LibreOffice解析参数出错,替换为英文引号后重试:

    soffice --infilter="writer_pdf_import" --convert-to "docx:MS Word 2007 XML" *.pdf
    
  • 强制保留分页参数:若上述操作无效,添加--headless模式并指定分页配置,强制导入时保留原PDF分页:

    soffice --headless --infilter="writer_pdf_import" --convert-to "docx:MS Word 2007 XML" --writer "PageBreaks=true" *.pdf
    
  • 调整Writer导入设置:

    1. 打开LibreOffice Writer,点击顶部菜单工具 > 选项 > LibreOffice Writer > 常规
    2. 勾选「导入PDF时保留页面布局」选项
    3. 重启LibreOffice后重新执行转换命令
  • 升级LibreOffice版本:7.5.x版本的PDF导入模块存在已知的分页处理缺陷,升级到7.6及以上稳定版可修复部分此类问题

内容的提问来源于stack exchange,提问作者Rajiv2806

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 18:42:38