What broke when I made resume PDFs work in 23 languages

by•

I make Folium, a free resume builder. Supporting 23 languages turned out to be mostly a PDF problem, not a translation problem. A few things that bit me, in case they save someone a week:

1. Arabic that looked right but could not be read back. Applicant tracking systems read the text layer, not the picture. With Noto Naskh, only 58% of the words came back intact when the PDF was parsed with Poppler (2% with pdf.js). Switching to IBM Plex Sans Arabic took that to 90% and 68%.

2. Chinese and Japanese that vanished on phones. Our server renders those PDFs with headless Chrome, and the .otf (CFF) fonts it embedded were not drawn by MuPDF, the engine behind many Android PDF viewers: bold Chinese disappeared and most Japanese text was gone. Static TTF fonts fixed it.

3. Letter-spaced headings read as single letters. pdf.js inserts a space when the gap between letters passes about 10% of the font size, so headings at 0.11 to 0.16 em came out as "E X P E R I E N C E" in 28 of our 30 templates. Capping the spacing at 0.095 em solved it.

4. Squeezed letters and huge gaps. Some lines came out with letters pressed together, and narrow sidebar columns got justified with big holes between words. I ended up patching react-pdf's line breaker and wrote up the details here:

If you generate documents in more than one script, what broke for you?

Disclosure: Folium is mine.

5 views

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.