Menu

1 / 2

Paginating a résumé in the browser so the PDF matches the preview

DEV Community: vue·Oleksandr (Alex) Huzei·3 days ago
#SE6upm8X
#devtovue#devto#dev#fragment#preview
Long article (1238 words) — no AI summary yet.
Reading 0:00
15s threshold

I build Fayna, a job-search workspace where each application gets its own résumé and cover letter. People edit a résumé on the left and watch it as real A4 pages on the right. Whatever they see there has to be exactly what the exported PDF contains: same page breaks, same columns, nothing hidden at the bottom of a page.

That turned out to be the hardest front-end problem in the product. Here is how the preview pagination works and the bugs that taught us its rules. The stack is Nuxt and Vue, but most of it applies to any framework.

Why CSS page breaks were not enough

break-inside: avoid and print media queries work for a single column of text. A résumé is not that.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.