pdf.js/examples/node/pdf2png
2017-06-12 10:22:16 -05:00
..
pdf2png.js Adds gulp dist-install command; using pdfjs-dist package in examples. 2017-06-12 10:22:16 -05:00
README.md Example for converting PDF to PNG using the Node canvas library 2017-03-26 20:24:00 +02:00

Overview

Example to demonstrate converting a PDF file to a PNG image using the PDF.js library.

Getting started

Install the dependencies and build the project:

$ npm install
$ gulp dist

Install the Node canvas library to convert the first page of a PDF file to a PNG image:

$ npm install canvas
$ cd examples/node/pdf2png
$ node pdf2png.js