Skip to content

Generate custom pdf at server side from custom template using puppeteer and handlebars.

Notifications You must be signed in to change notification settings

saket-gulhane/nodejs-pdf-generate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-pdf-generate

  • Generate custom pdf at server side (node) from custom template using puppeteer and handlebars.
  • Genrate tables with dynamic length of json array.
  • Fetches data from json object.

Dependencies:

1. puppeteer
2. handlerbars
3. This method used chromium browser to generate a pdf file from the defined template    

How to run:

1. At terminal run "npm install".
2. Run "node app.js".
3. "finalpdf.pdf" file will be created at main directory.

To change template design move to "./template/page.hbs"

Sample pdf: "https://github.com/th-10/nodejs-pdf-generate/blob/master/pdfFinal.pdf"

About

Generate custom pdf at server side from custom template using puppeteer and handlebars.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published