Skip to content

FreestoneInfotech/fs-puppeteer-pdf-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppeteer-pdf-generator

It will generate a pdf using the client component (it can be any tech i.e backbone, react, angular).

How it works

Let's assume you have React, Angular, Backbone or any Javascript UI which is running on http://localhost:3000. and the server is running on http://localhost:3001. Now when you want to download the pdf we will hit the API (http://localhost:3001/export/pdf)

Internally server starts a headless browser and opens http://localhost:3000 application and creates the pdf (i.e print layout).

Note: Server-side pdf generator code is hardcoded so you will get same pdf every time.

How to run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.8%
  • HTML 11.3%
  • CSS 5.9%