{"repo":"ccjmne/puppeteer-html2pdf","free":true,"listed":false,"github":"https://github.com/ccjmne/puppeteer-html2pdf","clone":"git clone https://github.com/ccjmne/puppeteer-html2pdf.git","description":"Print your HTML to PDF via Puppeteer in a Docker container.","language":"TypeScript","stars":18,"topics":["docker","puppeteer","pdf","html-to-pdf","nodejs"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"ccjmne/puppeteer-html2pdf Print your HTML to PDF through a Web server. Inside the box This is a simple Express server listening for POST requests passing some arbitrary HTML to print as PDF for generating fancy reports. Technologies used: - Docker - Puppeteer - Express - NodeJS It offers images for both ARM and AMD architectures. Quick Start This example (which you can copy and directly paste into your shell interpreter) will run it on port 3000 and print a simple HTML document to PDF. Docker Environment Variables Name Description Default Value ----------------- ------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------- BODY LIMIT Maximum request body size. Passed on to body-parser and express.json . 1mb BROWSER KEEPALIVE Period (in ms) of inactivity after which the shared browser instance is shut down. 30000 (30s) CHROMIUM ARGS Flags to be passed to the underlying Chromium instance. --disable-web-security --no-sandbox --disable-setuid-sandbox Setting PDF Information Dictionary The properties of the PDF Information Dictionary can also be controlled via query parameters. These are: Parameter Description -------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------- title The document's title author The name of the person who created the document s","default_branch":null,"files":null,"tree":[],"storefront":"/r/ccjmne","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ccjmne/puppeteer-html2pdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}