pdfiijs

0.2.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i pdfiijs

Weekly Downloads

0

Version

0.2.2

License

MIT

Last publish

Collaborators

  • rawonnode
  • iapain
  • warszk