Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

poppler-simple

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poppler-simple

A simple interface to poppler library

  • 0.10.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
839
decreased by-7.9%
Maintainers
1
Weekly downloads
 
Created
Source

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
CentOS

To install the poppler libraries on CentOS the following packages need to be installed:

sudo yum install poppler poppler-utils poppler-cpp-devel
Ubuntu

To install the poppler libraries on Ubuntu the following packages need to be installed:

sudo apt-get install libpoppler-cpp-dev libpoppler-private-dev
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.

Keywords

FAQs

Package last updated on 07 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc