A simple javascript interface to poppler library
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
src
test
.gitignore
.npmignore
.travis.yml
Dockerfile.example
LICENSE-APACHE
LICENSE-MIT
Makefile
README.md
binding.gyp
package-lock.json
package.json

README.md

poppler-simple Build Status

A simple javascript interface to poppler library.

Requirements:

  1. iconv implementation (usually included in glibc).
  2. Modern poppler library version (>= 0.18).

Install:

npm install poppler-simple

Install in Docker:

See Dockerfile.example for inspiration/information

Documentation:

Documentation is available in form of typescript definitions.

Example:

import { PopperDocument } from 'poppler-simple';

let doc = new PopplerDocument('file://' + pathToSomeDocument);
let page = doc.getPage(pageNum);
// renders page to a buffer in jpeg format with 75 quality and 120 DPI:
let result = page.renderToBuffer('jpeg', 120, {'quality': 75});

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.