pdfiijs

PDF inverted index creator.

npm install pdfiijs
20 downloads in the last month

pdfiijs

Build Status

PDF inverted index generator for node.

Creates inverted index from PDF file. The text inverted index generator is based on textiijs.

Requirements

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:

Ubuntu/Debian
$ sudo apt-get install poppler-utils
MacOSX
$ sudo port install poppler` or `brew install xpdf
Windows

download and install Xpdf.

Installation

via npm:

$ npm install pdfiijs

Usage

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);
});

Tests

$ make test

Coverage report

$ make test-cov
npm loves you