nodejs库,用于创建/转换PDF/A

发布于 2025-02-11 18:24:52 字数 331 浏览 1 评论 0原文

尝试找到一些能够转换/创建pdf/a的库( https://en.wikipedia 。

​-compliant-document“> nodejs-生成pdf/a兼容文档)或根本没有响应(如何使用节点JS?

我知道其他语言上存在一些libs(ghostscriptprocessor),但我在npmjs.com

Trying to find some library able to convert / create a PDF/A (https://en.wikipedia.org/wiki/PDF/A)

The already present anwers about it seems to call an external service (NodeJS - Generate PDF/A compliant document) or no response at all (How to create pdf/a-1b file using node js?)

I know that some libs exist on other languages (ghostscriptProcessor), but i cannot find anything on npmjs.com

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

椵侞 2025-02-18 18:24:52

您可以使用

我最近在 https://github.com/gflohr/e-invoice-eu/blob/main/src/format/format/format/format-factur-x.service.ts.ts ,搜索,搜索对于方法createpdfa()。您将不得不提供一些元信息,例如作者,创作者,主题等,但是您将很容易解决。

该代码还为FACTUR-X/ZUGFERD添加了PDF/A扩展模式。如果您不需要,则可以轻松删除相应的代码。

You can create PDF/A documents with pdf-lib but there is no high-level API function for creating or converting PDF/A. The necessary steps are described in these github issues resp. comments to them:

I have recently done a complete implementation in https://github.com/gflohr/e-invoice-eu/blob/main/src/format/format-factur-x.service.ts, search for the method createPDFA(). You will have to provide a little bit of meta information like author, creator, subject and so on but you will easily sort that out.

The code also adds the PDF/A extension schema for Factur-X/ZUGFeRD. If you don't need that, you can easily remove the corresponding piece of code.

佞臣 2025-02-18 18:24:52

我最近发现 pdfme 库。该库是开源的,基于 pdf-lib 。它在节点和浏览器上运行,并创建1.7版的PDF版本,在您的情况下,可能是PDF/A-2。

I recently found PDFme library. This library is open source and is base on PDF-lib. It runs on Node and browser and creates a 1.7 version of the PDF, in your case probably PDF/A-2.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文