使用Python输出PDF作为PDF/X-1A:2003

发布于 2025-02-14 02:11:46 字数 346 浏览 3 评论 0原文

我正在构建然后使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文