Skip to content

studiojms/nodejs-react-puppeteer-pdf-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-react-puppeteer-pdf-example

Generate PDF using nodejs, react and puppeteer

Running the project

Dependencies

To execute the project, you need to first install its dependencies:

yarn install

or

npm install

Running

To run the project, you need to execute the web app in one terminal:

yarn start

or

npm run start

Generating PDF

After having the project running (port 3000), you need to execute the script to generate the PDF. In another terminal, run:

yarn pdf

or

npm run pdf

The PDF file will be created in tmp folder

Example

Here's an example of a generated PDF

image

About

Generate PDF using nodejs, react and puppeteer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published