nodejs库,用于创建/转换PDF/A
尝试找到一些能够转换/创建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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
我最近在 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.
我最近发现 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.