17 lines
		
	
	
		
			371 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			17 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
 |