We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f15863 commit 77fe479Copy full SHA for 77fe479
pdf-export.mjs
@@ -8,12 +8,13 @@ const slidesPath = path.join(
8
path.dirname(import.meta.url),
9
"index.html?print-pdf"
10
);
11
-console.log(`Navigating to ${slidesPath}`);
12
+console.log(`Navigating to ${slidesPath}`);
13
await page.goto(slidesPath);
14
15
-console.log(`Generating PDF version of the slides for ${await page.title()}`);
+await new Promise((r) => setTimeout(r, 2000));
16
17
+console.log(`Generating PDF version of the slides for ${await page.title()}`);
18
await page.pdf({ path: "slides.pdf", format: "A4", timeout: 0 });
19
20
await browser.close();
0 commit comments