Menu

Why my converted PDF page showed a different font: it was Type 1, not a license flag
📰

Why my converted PDF page showed a different font: it was Type 1, not a license flag

DEV Community: javascript·NullPointerZen·about 3 hours ago
#02A38sw0
#devtojavascript#devto#dev#font#fstype
Reading 0:00
15s threshold

I converted a 4-page brochure PDF to HTML and the headline font survived while the body text came out in something else. Same page, same words, different typeface. A font license flag such as fsType is one possible explanation, but in this file it was not the cause, and the real one was easy to check.

What I converted

The sample is a public brochure from the Wikimedia Commons file "Evaluating Wikipedia" (Wiki Education Foundation and others, CC BY-SA 3.0). I cut the first 4 pages out of the 8-page original, which came to 1,180,300 bytes. Everything below is from this one file, on my M4 Mac, run once, in Chromium 149.

For the conversion I used ImgIng ( https://imging.ai/ ), which runs in a desktop browser, is labelled Beta, and processes the file locally. After it finished, the headings still looked like the PDF. The body paragraphs did not.

Where the font went

The result panel told me about it.…

Continue reading — create a free account

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