How to Extract and Identify Fonts Inside a PDF (Text, Outlined & Scanned)
A technical guide to discovering fonts inside PDF files. Learn how to inspect embedded TrueType/OpenType subsets, identify outlined curves, and OCR scanned pages.
Maya Chen
Senior Typographer & Font Data Lead
Reviewed for technical accuracy · 446 words · 10 min read
What you will learn
- Inspect internal PDF dictionary tables: /BaseFont, /FontDescriptor, and /ToUnicode.
- Decode 6-character subset tags like "ABCDEF+Helvetica" to find the real family name.
- Extract fonts from outlined vector curves where font tables have been permanently deleted.
- Binarize and OCR scanned historical paper documents right inside your browser.
The Portable Document Format (PDF) is the universal medium for business contracts, whitepapers, magazines, and print-ready publishing. Yet extracting the exact typeface used in a PDF can feel surprisingly opaque. Depending on how the document was exported, the typography may exist as embedded vector font software, outlined Bézier curves, or purely unsearchable raster images.
This technical guide explains the internal architecture of PDF fonts and provides a complete method for identifying typefaces across all three PDF states.
The Internal Architecture of PDF Fonts
Under the ISO 32000 PDF specification, documents organize content into a tree of dictionary objects. When live text is embedded, the PDF contains a /Font dictionary linked to the page's /Resources dictionary. Key elements include:
/BaseFont: The PostScript name of the font (e.g./MinionPro-Regular)./Subtype: The format container, such as/TrueType,/Type1, or/Type0(CIDFont)./FontDescriptor: Contains typographic metrics including x-height, cap-height, stem thickness, and italic angle./ToUnicode: The CMap stream that maps raw binary character codes to human-readable Unicode text.
Decoding Embedded Subset Tags (e.g. "ABCDEF+FontName")
When you inspect a PDF's document properties in Adobe Acrobat (File → Properties → Fonts) or Apple Preview (⌘I → Fonts), font names often appear with bizarre prefixes like XKZRPQ+ProximaNova-Bold or BAAAAA+Georgia.
This prefix is an OpenType subset tag. To keep file sizes small, publishing tools like InDesign or LaTeX only embed the specific glyphs used in the document. The compiler generates a random six-letter uppercase string followed by a plus sign (+) to ensure multiple merged PDF subsets never collide. When identifying the font, simply discard the six characters and the plus sign—the true commercial typeface name is whatever follows.
Handling Outlined and Flattened Vector PDFs
In pre-press print production, graphic designers often convert all typography into raw paths (Type → Create Outlines) prior to final export. This permanently strips all /Font metadata from the PDF structure. The characters become raw drawing commands (m for move, l for line, c for curve).
When metadata inspectors report zero fonts, you must use visual matching. Our PDF Font Detector renders the vector paths onto an in-browser canvas at 2.5x Retina resolution, isolates the glyph contours, and matches them mathematically against 1,942+ open-source typefaces.
Scanned Paper PDFs: Optical OCR Preprocessing
Scanned PDFs contain zero vector data; they are simply bitmap photos wrapped in a PDF envelope. To identify fonts in paper scans:
- Upload the PDF to the PDF Font Detector.
- Navigate to the page containing clean, high-contrast headings.
- Crop a single line of text. The engine applies local Otsu binarization to remove yellowing paper artifacts and extracts the character shapes for instant matching.
FontsFinder AI Editorial Team
Senior Typography & Typeface Recognition Specialists
The FontsFinder AI research and typography team specializes in font anatomy, algorithmic letterform matching, and open-source font licensing. With decades of combined experience in typeface engineering and design systems, our guides are verified against official foundry specs and SIL/Apache license documentation.
Put this guide to work
Upload an image, screenshot or PDF and identify the typeface against 1,900+ fonts. Everything runs locally in your browser.
Related guides
How to Identify Any Font from an Image, Screenshot, or Photo (Step-by-Step)
Most failed font identifications are caused by input errors, low resolution, or perspective distortion. Learn how to crop tighter, isolate diagnostic letterforms, and verify automated matches against open-source type databases.
Free Google Font Alternatives to the 25 Most Expensive Commercial Typefaces
Commercial web font licenses can cost thousands of dollars annually in tiered pageview fees. Discover verified, metric-compatible open-source Google Font equivalents under the SIL OFL.
SIL Open Font License (OFL) vs. Apache 2.0: Commercial Font Licensing Explained
A clause-by-clause legal analysis of the SIL Open Font License 1.1 and Apache 2.0 licenses. Learn how to safely use open fonts in client logos, websites, mobile apps, and merchandise.