/pdfinfojs

A js wrapper to pdfinfo

Primary LanguageJavaScriptMIT LicenseMIT

pdfinfojs - pdfinfo shell wrapper for Node.js

Build Status 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