-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
I figure we could make a gulp build, and run puppeteer (headless chrome) to export the PDF's? Thoughts?
https://github.com/GoogleChrome/puppeteer has an example of creating a PDF from a page:
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://news.ycombinator.com', {waitUntil: 'networkidle2'});
await page.pdf({path: 'hn.pdf', format: 'A4'});
await browser.close();
})();Addtional docs: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepdfoptions
7fe, Vandivier and Yochyo
Metadata
Metadata
Assignees
Labels
No labels