POC generate pdf from html with puppeteer and express with docker and docker-compose
docker-compose up -d
node index.js
http://localhost:3030?url=https://google.com.br&filename=printgoogle.pdf
url
: Url to genrate pdf
filename
: Filename of download file
width
: Width in pixels to pdf (default: 1650)
height
: Height in pixcels to pdf (default: 800 )
format
: see options on puppeteer_pagepdfoptions (format has priority above width and height)
timeout
: timeout to wait page after full load (for wait external async content, like a api request) (default: 3000)