root 3bf41bf355 update | 1 rok temu | |
---|---|---|
.. | ||
README.md | 1 rok temu | |
pdf2png.js | 1 rok temu |
Example to demonstrate converting a PDF file to a PNG image using the PDF.js library.
Install the dependencies and build the PDF.js library:
$ npm install
$ gulp dist-install
Install the Node canvas library and run the example to convert the first page of a PDF file to a PNG image:
$ npm install canvas
$ cd examples/node/pdf2png
$ node pdf2png.js