A simple api for reading PDF meta info via xpdf's pdfinfo(1)
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
Makefile
README.md
index.js
package.json

README.md

node-pdfinfo

A simple api for reading pdf meta info via xpdf's pdfinfo(1).

Requires

Install

$ git clone https://github.com/ecarter/node-pdfinfo.git
$ cd node-pdfinfo
$ npm install

Example

var PDF = require('pdfinfo');

var pdf = PDF('test/pdf/basic.pdf');

pdf.info(function(err, meta){
  if (err) throw err;
  console.log('pdf info', meta)
})

You can also pass a readable stream into the first argument instead of a file.

License

MIT