pdfinfojs

A pdf meta information extractor

pdfinfojs provides access to pdfinfo via shell in nodejs.

via npm:

$ npm install pdfinfojs
var pdfinfo = require('pdfinfojs'),
    info = new pdfinfo('tests/pdfs/sample.pdf');
 
info.success(function(i) {
  console.log(i);
});
 
info.error(function(error) {
  console.log("conversion error: " + error);
});
 
info.get();
$ npm test

Coverage (Make sure you have installed jscoverage (it's easy sudo aptitude install jscoverage or brew jscoverage)

$ npm test-cov