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 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 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); });
Hi,
Maybe this can helps you, https://mozilla.github.io/pdf.js/examples/
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
Victor Onyebuchi
6