LibreOffice Draw 允许您打开非 PDF/A 文件并将其导出为 PDF/A-1b 或 PDF/A-2b 文件。
通过在 macOS 上调用命令行也可以实现相同的效果
/Applications/LibreOffice.app/Contents/MacOS/soffice --headless \
--convert-to pdf:draw_pdf_Export \
--outdir ./pdfout \
./input-non-pdfa.pdf
或简单的Linux
libreoffice --headless \
--convert-to pdf:draw_pdf_Export \
--outdir ./pdfout \
./input-non-pdfa.pdf
在命令行上可以告诉convert-to
创建 pdf 并使用 LibreOffice Draw 来完成此操作,方法是告诉--convert-to pdf:draw_pdf_Export
.
还有一种方法可以告诉 LibreOffice 在中生成 PDF/A 文档headless mode?
对于PDF/A-1(意味着PDF/A-1b
?):
soffice --headless --convert-to pdf:"writer_pdf_Export:SelectPdfVersion=1" --outdir outdir input.pdf
将值更改为1
to 2
对于 PDF/A-2,这里是 Libreoffice 源代码通用.xcs https://github.com/LibreOffice/core/blob/d4f5299fd2806d8f5dcd467742effeaa0dee8863/officecfg/registry/schema/org/openoffice/Office/Common.xcs#L5417-L5449, pdfexport.cxx https://github.com/LibreOffice/core/blob/e83b5f6a015269ed7e5407a8440c0fc99fcfa397/filter/source/pdf/pdfexport.cxx#L590-L623 and pdffilter.cxx https://github.com/LibreOffice/core/blob/bdbb5d0389642c0d445b5779fe2a18fda3e4a4d4/filter/source/pdf/pdffilter.cxx#L85.
- (也许已经过时了)API/教程/PDF 导出 - Apache OpenOffice Wiki https://wiki.openoffice.org/wiki/API/Tutorials/PDF_export
- Python 指南 - PDF 导出过滤器数据 - The Document Foundation Wiki https://wiki.documentfoundation.org/Macros/Python_Guide/PDF_export_filter_data
- excel->pdf変换命令のdpi设定 - Ask LibreOffice https://ask.libreoffice.org/ja/question/229354/excel-pdfbian-huan-command-nodpishe-ding/
- 更改批量 PNG 转换中的默认分辨率 [已关闭] - Ask LibreOffice https://ask.libreoffice.org/en/question/68775/change-default-resolution-in-batch-png-conversion/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)