tahamajs/IE / Slides /convert.js
tahamajs's picture
download
raw
652 Bytes
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
// Use file protocol for local HTML file
const htmlPath = 'file:///Users/tahamajs/.gemini/antigravity-cli/brain/e820b4dc-5b82-4357-bda4-cb769331fcee/IE_Exam_Notes_Encyclopedia.html';
await page.goto(htmlPath, { waitUntil: 'networkidle0' });
await page.pdf({
path: '/Users/tahamajs/Documents/uni/IE/Slides/IE_Exam_Notes_Encyclopedia.pdf',
format: 'A4',
printBackground: true,
margin: { top: '20mm', right: '20mm', bottom: '20mm', left: '20mm' }
});
await browser.close();
})();

Xet Storage Details

Size:
652 Bytes
·
Xet hash:
51d4801e65f307cba552871f6cff28febb49e90c175a5cc42b3d2ecbce8a0331

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.