Notifications
Announcements
No record found.
Hi everybody!
I'm a newbie, and i'm having a problem with read properties of PDF, i need get all attributes in properties of PDF.
Example: create on of PDF, Modified ....
Help me!
*This post is locked for comments
Hi,
Maybe this can helps you, https://mozilla.github.io/pdf.js/examples/
Hi Leon Kai,
You can obtain this information with mozilla/pdf.js. Below is some sample code for this.
PDFJS.getDocument(url).then(function (pdfDoc_) { pdfDoc = pdfDoc_; pdfDoc.getMetadata().then(function(contents) { console.log(contents); }).catch(function(error) { console.log("Error getting metadata"); console.log(error); }); }).catch(function(error) { console.log("Error getting PDF from the url: " + url); console.log(error); });
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2