The worlds most simplest website to PDF converter, based on express and puppeteer.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
.gitignore
LICENSE
README.md
index.html
package-lock.json
package.json
screenshot.png
server-forever.js
server.js

README.md

puppeteer-html2pdf

Screenshot

The worlds most simplest website to PDF converter, based on express and Puppeteer (previously based on nightmare which can't run headless).

Howto

npm i
npm start

Browse to http://localhost:4000/ and start converting websites to PDF files.

Howto Heroku

Fork this repo, adjust some settings. You can also directly auto deploy this repository, if you want. A free dyno is good enough. Required Buildpacks:

  • heroku/nodejs
  • https://github.com/jontewks/puppeteer-heroku-buildpack

That's it. Start converting websites.

Online Demo

You can test this service at https://puppeteer-html2pdf.herokuapp.com/
Don't use this for any productive usage and don't rely on the service!

  • I can and will shut down the demo whenever i want.
  • There is also no warranty of any kind.
  • I might add kitten pictures into the PDF!

License

The MIT License (MIT)

Copyright (c) 2018 Johannes Hoppe