Skip to content

Commit d0a36d7

Browse files
committed
Be more lenient with wait time for PDF export
1 parent 4c208b6 commit d0a36d7

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

β€Žindex.htmlβ€Ž

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,10 @@ <h2>Bio</h2>
264264
>"
265265
</li>
266266
<li>
267-
πŸŽ“ Bachelor's in operations research from Columbia University
268-
</li>
269-
<li>
270-
πŸŽ“ Master's in computer science (ML specialization) from Georgia
271-
Tech
267+
πŸŽ“ Bachelor's degree in operations research from Columbia
268+
University
272269
</li>
270+
<li>πŸŽ“ Master's degree in computer science from Georgia Tech</li>
273271
</ul>
274272
</section>
275273
<section id="prerequisites">

β€Žpdf-export.mjsβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const slidesPath = path.join(
1212
console.log(`Navigating to ${slidesPath}`);
1313
await page.goto(slidesPath);
1414

15-
await new Promise((r) => setTimeout(r, 2000));
15+
await new Promise((r) => setTimeout(r, 10_000));
1616

17-
console.log(`Generating PDF version of the slides for ${await page.title()}`);
18-
await page.pdf({ path: "slides.pdf", format: "A4", timeout: 0 });
17+
console.log(`Generating PDF version of ${await page.title()}`);
18+
await page.pdf({ path: "slides.pdf", format: "A4", timeout: 0, margin: 0 });
1919

2020
await browser.close();

0 commit comments

Comments
Β (0)