Skip to content

PDF generation: use playwright instead of pyppeteer - #59

Open
underscore-j wants to merge 1 commit into
ioi:ioi2025from
underscore-j:ioi2025
Open

PDF generation: use playwright instead of pyppeteer#59
underscore-j wants to merge 1 commit into
ioi:ioi2025from
underscore-j:ioi2025

Conversation

@underscore-j

Copy link
Copy Markdown

pyppeteer, by default, uses a pretty outdated version of chromium (117.0.5938.0).

That version does not handle tables over page breaks very well, in some cases causing tables that don't fit at the bottom of a page to be spread across multiple pages, with those pages being otherwise empty.
The resulting statements could be extremely confusing to contestants.

By swapping out pyppeteer for playwright, we can use a more recent version of chromium, which handles tables much better (in the aforementioned case, the entire table will be placed after the page break, intact).

@gollux

gollux commented Jul 27, 2025

Copy link
Copy Markdown
Member

It's a good idea, I will give it some testing after the IOI is over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants