Menu

Why pdf.js read our resume headings as "E X P E R I E N C E" (and the cap that fixed 28 of 30 templates)
📰

Why pdf.js read our resume headings as "E X P E R I E N C E" (and the cap that fixed 28 of 30 templates)

DEV Community: react·Nahuel Giudizi·11 days ago
#OHyoprpi
#devtoreact#devto#dev#style#const
Long article (1123 words) — no AI summary yet.
Reading 0:00
15s threshold

I build a resume builder that renders PDFs with @react-pdf/renderer . Resumes are a special kind of PDF: a human reads them, but first a machine usually does. Applicant tracking systems and importers pull the text out, and if the text comes out wrong, the nicest layout in the world does not help.

So I wrote an audit: render every template, extract the text with two common open-source extractors, pdf.js and Poppler, and compare. The first run was humbling. In 28 of our 30 templates, pdf.js returned the section headings spelled out letter by letter : E X P E R I E N C E , E D U C A T I O N , and the job title under the name too. Poppler joined them correctly in all but one.

Nothing looked wrong on screen. The cause was a design choice almost every resume template makes.

PDFs don't store spaces, extractors guess them

A PDF page is a list of glyphs with positions. There is no guarantee that a space character exists between two words; often there is just a gap.…

Continue reading — create a free account

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