2017-09-05 05:26:50 +00:00
|
|
|
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
2017-08-19 23:06:34 +00:00
|
|
|
const puppeteer = require('puppeteer');
|
|
|
|
|
|
|
|
(async () => {
|
|
|
|
|
|
|
|
const browser = await puppeteer.launch();
|
|
|
|
const page = await browser.newPage();
|
2017-09-24 23:40:09 +00:00
|
|
|
await page.goto('http://oss.sheetjs.com/js-xlsx/tests/', {waitUntil: 'load'});
|
2017-08-19 23:06:34 +00:00
|
|
|
await page.waitFor(30*1000);
|
|
|
|
await page.pdf({path: 'test.pdf', format: 'A4'});
|
|
|
|
|
|
|
|
browser.close();
|
|
|
|
})();
|
|
|
|
|