简体   繁体   English

如何使用 node js 将自定义元数据添加到 pdf

[英]how to add custom metadata to pdf using node js

I am reading a pdf file from AWS s3 bucket and want to generate a new file with additional custom metadata using node in lambda.我正在从 AWS s3 存储桶中读取 pdf 文件,并希望使用 lambda 中的节点生成一个带有附加自定义元数据的新文件。

I tried with pdf-lib NPM and was able to generate a new file but didn't find a way to add custom metadata.我尝试使用 pdf-lib NPM 并能够生成一个新文件,但没有找到添加自定义元数据的方法。 the NPM document only has methods to add default properties like title, author. NPM 文档只有添加标题、作者等默认属性的方法。

Please suggest any way to add custom metadata请建议任何添加自定义元数据的方法

the best library for PDF manipulation is pdfmake PDF 操作的最佳库是 pdfmake

https://www.npmjs.com/package/pdfmake https://www.npmjs.com/package/pdfmake

you can achieve any thing from using this library.你可以通过使用这个库来实现任何事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM