New Tool Radar

AI PDF

How to Check Whether Any Font in a PDF Is Not Embedded and May Be Substituted by the Reader

Run pdffonts with the substitute option to list non-embedded fonts and see which fonts the reader will substitute in their place.

Schematic with three steps: List the fonts and their embedded status; List the substitute fonts the reader will; Decide whether to embed the missing fonts.

A font that is not embedded in a PDF must be supplied by the reader, and if the reader does not have it, a substitute font is used instead. The substitute can change line breaks and the look of the page. Checking for non-embedded fonts before sharing shows where that risk lies.

What you need

  • poppler-utils installed, which provides pdffonts
  • A PDF to check
  • A terminal

Step 1: List the fonts and their embedded status

Run pdffonts file.pdf and read the emb column. A font whose emb column says no is not embedded in the file.

Step 2: List the substitute fonts the reader will use

Run pdffonts -subst file.pdf to see which substitute fonts poppler will use for each non-embedded font.

Step 3: Decide whether to embed the missing fonts

If a non-embedded font is important to the document’s look, ask the creator to re-export the PDF with the font embedded, then re-run the listing to confirm.

Worked example: synthetic font check on a 9-page newsletter

The table below is a synthetic example. It shows the expected result of the pdffonts listing; no listing was run.

Font Embedded Substitute
Helvetica yes None needed
CustomDisplay no DejaVu Sans
Georgia yes None needed
Total 3 fonts 1 font will be substituted

Expected result (UNTESTED). two fonts are embedded, but CustomDisplay is not, so readers without it will see DejaVu Sans instead and the layout may shift. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • pdffonts reports what the PDF declares; a font listed as embedded can still be incomplete.
  • Different readers choose different substitutes, so the poppler substitute is only one example.
  • Standard base fonts are often left unembedded on purpose, because most readers have them.

Sources

See all