Skip to content
Native PDFium ported for node, iojs and nwjs
Branch: master
Clone or download
Latest commit 019540a Jan 8, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
third_party Fix Dec 14, 2017
LICENSE Initial commit Mar 19, 2015 Fix typos in the Readme Nov 2, 2015
binding.gyp first workable version tested on windows/osx. Mar 27, 2015
index.js first workable version tested on windows/osx. Mar 27, 2015
package.json corrected package.json Mar 27, 2015


Native port of PDFium to node.js, iojs and Nw.js. The main motivation of this project is to render/convert a PDF format direct into EMF format, to be able to print on windows printer by using native printer module.


  • getSupportedOutputFormats() - returns an array of all supported output formats: ['BPM', 'EMF', 'PNG', 'PPM']. Note that EMF and BMP formats are supported only on windows.
  • render(options, [callback(err, pages)]) - render/convert a PDF data into one of output format from getSupportedOutputFormats(). Parameters:
    • option (object, mandatory) may contains the following fields:
      • data (Buffer, mandatory) - PDF data buffer
      • outputFormat (String, mandatory) - output format name. one from getSupportedOutputFormats()
      • scaleFactor (Number, optional, default: 1.0) - scale factor of the output format.
    • callback(err, pages) (function, optional) - callback function. pages is array of buffers. If callback is missing, then the pages will be returned from render(options). In case of error, an exception will be thrown.


BSD - feel free to use and support.

You can’t perform that action at this time.