使用Python输出PDF作为PDF/X-1A:2003
我正在构建然后使用Python FPDF2库保存PDF文件:
CLI:
>pip install fpdf2
然后在Python中:
from fpdf import FPDF
pdf = FPDF(unit = 'pt')
# <Add content to pdf>
pdf.output(<path>, "F")
但是,我需要输出在“ PDF/X-1A:2003”(我什至不知道如何检查当前使用什么类型)。
有人知道使用Python以PDF/X-1A:2003格式输出该文件吗?
I am building then saving a PDF file using the python fpdf2 library like this:
cli:
>pip install fpdf2
then in python:
from fpdf import FPDF
pdf = FPDF(unit = 'pt')
# <Add content to pdf>
pdf.output(<path>, "F")
However, I need the output to be in "PDF/X-1a:2003" (I don't even know how to check what type it is currently in).
Does anyone know to output the file in PDF/X-1a:2003 format using python?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论