简体   繁体   中英

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.

I tried with pdf-lib NPM and was able to generate a new file but didn't find a way to add custom metadata. the NPM document only has methods to add default properties like title, author.

Please suggest any way to add custom metadata

the best library for PDF manipulation is pdfmake

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

you can achieve any thing from using this library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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