Skip to content

fagbokforlaget/pdfiijs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A pdf to inverted index in js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published