mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
16 lines
371 B
Markdown
16 lines
371 B
Markdown
## 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
|