Claude written astro
This commit is contained in:
15
AstroCV/scripts/render.ts
Normal file
15
AstroCV/scripts/render.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import puppeteer from "puppeteer";
|
||||
|
||||
const browser = await puppeteer.launch({
|
||||
executablePath: "/usr/bin/chromium",
|
||||
});
|
||||
const page = await browser.newPage();
|
||||
await page.goto("http://localhost:4321", { waitUntil: "networkidle0" });
|
||||
await page.pdf({
|
||||
path: "../public/cv.pdf",
|
||||
format: "A4",
|
||||
printBackground: true,
|
||||
margin: {},
|
||||
});
|
||||
await browser.close();
|
||||
console.log("cv.pdf saved");
|
||||
Reference in New Issue
Block a user