Skip to content

Instantly share code, notes, and snippets.

View cheephardware's full-sized avatar

CHEEP HARDWARE cheephardware

View GitHub Profile
@cheephardware
cheephardware / nodepdfmaker.js
Last active March 14, 2023 22:38
Simple local HTML ---> PDF Example using Node.js / Puppeteer.js
//Full PDF options available at: https://pptr.dev/api/puppeteer.pdfoptions
const puppeteer = require('puppeteer');
(async () => {
// Create a browser instance
const browser = await puppeteer.launch();
// Create a new page