Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 661 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 661 Bytes

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"