2017-03-03 05:18:33 +09:00
|
|
|
## Overview
|
|
|
|
|
|
|
|
Example to demonstrate converting a PDF file to a PNG image using the PDF.js library.
|
|
|
|
|
|
|
|
## Getting started
|
|
|
|
|
2018-04-01 19:41:15 +09:00
|
|
|
Install the dependencies and build the PDF.js library:
|
2017-03-03 05:18:33 +09:00
|
|
|
|
|
|
|
$ npm install
|
2018-04-01 19:41:15 +09:00
|
|
|
$ gulp dist-install
|
2017-03-03 05:18:33 +09:00
|
|
|
|
2018-04-01 19:41:15 +09:00
|
|
|
Install the Node canvas library and run the example to convert the first page of a
|
|
|
|
PDF file to a PNG image:
|
2017-03-03 05:18:33 +09:00
|
|
|
|
|
|
|
$ npm install canvas
|
|
|
|
$ cd examples/node/pdf2png
|
|
|
|
$ node pdf2png.js
|