Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

christopher-talke/node-express-puppeteer-pdf-example

Open more actions menu

Repository files navigation

Puppeteer PDF Example

This is a Docker example of using Puppeteer to Generate PDF Documents, there are some bonus stuff in this that could be adjusted to be really useful:

  • Base64 to HTML PDF Generation
  • Route Protection with API

Animated example of this app

Docker Deployment

I've created a image for this example that can be found here https://hub.docker.com/r/ctalke/node-express-puppeteer.

docker pull ctalke/node-express-puppeteer
docker run -d -p 3000:3000 --restart unless-stopped ctalke/node-express-puppeteer

Development Setup

Clone the repository, move into the directory, install all NPM Deps, and then crack open your editor.

git clone https://github.com/christopher-talke/node-express-puppeteer-pdf-example.git
cd node-expess-puppeteer-pdf-example
npm i
code .

To run the application in development, just run this command:

npm run dev

The Express application will open on https://localhost:3000

Docker Build

docker build -t puppeteer_in_docker .
docker run -p 3000:3000 puppeteer_in_docker

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Be nice, and don't be like this guy: Click Here

Author

@Christopher Talke

Contributors

@TMInnovations

License

MIT

About

NodeJS Express Server example utilising Puppeteer for PDF Rendering.

Topics

Resources

Stars

Watchers

Forks

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.