pdfinfojs
v0.5.2
Published
A pdf meta information extractor
Downloads
114
Readme
pdfinfojs - pdfinfo shell wrapper for Node.js
pdfinfojs provides access to pdfinfo via shell in nodejs.
Installation
via npm:
$ npm install pdfinfojs
Usage
const pdfinfo = require('pdfinfojs');
const pdf = new pdfinfo('test/pdfs/sample.pdf');
pdf.getInfo()
.then(function (info) { // return Promise
console.log(info);
})
.catch(function (err) {
console.err(err);
});
Tests
$ npm test