PDF inverted index generator for node.
Creates inverted index from PDF file. The text inverted index generator is based on textiijs.
This package is based on two other packages: pdftotext and pdfinfo. They both depend on pdftotext and pdfinfo being a part of poppler-utils.
To install poppler-utils follow the instructions:
$ sudo apt-get install poppler-utils
$ sudo port install poppler` or `brew install xpdf
download and install Xpdf.
via npm:
$ npm install pdfiijs
var pdfii = require('pdfiijs');
var pii = new pdfii('./sample.pdf');
pii.get(function(err, data) {
if(err) {
return console.log("Error: " + err);
}
console.log(data);
});
$ make test
Coverage report
$ make test-cov