Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
FREEDOM251

Freedom251 › Blog › document accessibility

PDF Text Extraction: What a ToUnicode Check Can—and Can’t—Tell You

By Freedom251 Team · · 4 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A missing /ToUnicode map can explain why a PDF’s character codes fail to extract as meaningful text, but it cannot explain every copying or extraction problem. It is one font-mapping check—not a test for whether a page contains text, whether its characters were recognized correctly, or whether its reading order and layout can be reconstructed.

What a ToUnicode map tells you

PDF text involves at least two distinct steps: a font maps stored character codes to glyphs for display, and extraction software must determine which Unicode characters those codes represent. A font dictionary’s optional /ToUnicode CMap can provide that character-code-to-Unicode mapping, particularly when the font’s encoding does not otherwise convey the characters’ meanings.

As an Amazon Associate I earn from qualifying purchases.

Adobe’s PDF Reference, Second Edition explains the consequence of its absence in a relevant case: “In the absence of a /ToUnicode entry, there would be no information available about what the characters mean.” That makes a missing map a useful clue when selectable text extracts as unrelated symbols or garbled characters. But it is not proof that every failure has the same cause—or that every present map is appropriate. A presence-only test does not verify that the mapping gives the right meaning. Adobe PDF Reference

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why the test cannot explain every symptom

A page may be an image, not text

A scanned page can consist of a raster image with no selectable text for a conventional PDF text extractor to recover. A parser that extracts text from PDF content is not automatically performing OCR. An OCR process may add a hidden text layer, but recognition mistakes in that layer can make extracted words inaccurate even when a font map is not the problem. pypdf documents both its non-OCR scope and the need for OCR when pages contain only images. pypdf: Extract Text from a PDF pypdf current extraction documentation

#1 Best Overall
CZUR Shine Ultra Smart Portable Document Scanner, Thin Book Scanner | OCR, USB Document Camera for Desktop/Laptop, Capture Size A3, Compatible with Windows & macOS
  • Design and Speed: Work with Windows XP/7/8/10/11 AND macOS 10.13 or later. Not compatible with Android and iOS. Designed for A3&A4(11.69*16.53 & 8.27*11.75 inch) document, any objects smaller than A3 size can be scanned with Ultra-fast scanning speed, about 1 second per page. Perfect device to scan FLAT papers
  • USB Document Camera & Scanner: Work as both a document camera for remote teaching&learning compatible with ZOOM; Goole Meet and a document scanner to scan papers and convert/OCR files. OCR supports 180+ languages for text recognition. Please note that Thai, Hebrew, and Arabic are currently not supported. If you need the complete OCR language support list, please feel free to contact us for more details
  • Patented Flattening Curved Book Page Technology: Shine Ultra applies CZUR’s patented technology to flatten the curved surface after pixel transformation to flattening of the book page (Only suitable for thinner books, ET series is recommended for thicker books)
  • High Resolution & AI Tech: CMOS 13MP (4160*3120, A4≈340 AND A3≈245 DPI) camera. Smart Paging and Auto Cropping; Combine Sides; Stamp Mode; and Multiple Color Modes
  • Height Adjustable & Portable: 2-level height adjustable neck. 90 degree foldable and lightweight 4 lbs with foot pedal for convenient operation

Correct characters may still be in the wrong order

PDFs position text for visual display; they do not necessarily store words in the order a person reads them. Extraction software may follow text-drawing commands, so a page can yield correct characters in a scrambled sequence. Reconstructing lines, columns, and tables requires interpreting positions and spacing, and results can vary with the PDF generator. pypdf offers layout-oriented extraction options, but those options do not guarantee that every document’s visual order will be reproduced exactly. pypdf current extraction documentation pypdf PageObject documentation

Visual structure is not necessarily encoded as meaning

A page may look like it has headings, paragraphs, columns, or a table without encoding those elements as semantic structures. Tables are often made from positioned text rather than a structured table object. A Unicode mapping can help identify characters; it does not by itself restore paragraph relationships, heading levels, or table cells. pypdf describes this gap between visual arrangement and semantic structure in its extraction guidance. pypdf: Extract Text from a PDF

Rank #2
CZUR Lens800 Pro Portable 8MP A4 Document Scanner
  • Product Performance: 8MP Camera, 270 DPI, Resolution: 3264*2448
  • OCR Recognition: CZUR's software can digitize documents into Word/Excel/PDF/Editable PDF, recognizing 180+ languages. Please note that Thai, Hebrew, and Arabic are currently not supported. If you need the complete OCR language support list, please feel free to contact us for more details
  • Fast Scanning & Multi-Targeting: Ultra Fast Scanning Speed 1s/page and catch multiple targets (like business cards)
  • Maximal Capture Size A4: CZUR Lens can scan various types of documents; medical forms; certificates; contracts; business cards; letters, etc. up to A4 size (8.27'' *11.69''). Not recommended for very Glossy Paper
  • Multifunctional: CZUR Lens can work both as a scanner and webcam. To fold Lens to make it an HD webcam

Diagnose the symptom before choosing a fix

  1. Compare the rendered page with the extracted result. Check whether the visible words appear as selectable text. If the page is image-only or has no selectable text, investigate an OCR workflow rather than starting with a ToUnicode check. A conventional parser does not create text from page images.
  2. If text is selectable but characters are wrong, inspect the font mapping. Check the font encoding and whether its /ToUnicode CMap is absent, malformed, or unsuitable. The relevant question is not just whether a map exists, but whether it maps the codes to the intended Unicode characters.
  3. If characters are right but sequence is wrong, investigate ordering and layout. Compare the extracted lines, columns, and tables with the rendered page. Where the extractor provides a layout-oriented mode, try it and inspect the result rather than assuming that a mode or map will resolve every layout.
  4. If the page is a scan with selectable hidden text, check the OCR layer. Compare its recognized words against the image; OCR errors can persist in otherwise extractable text.
  5. If the question is conformance, use a conformance validator for that purpose. veraPDF can validate PDF/A and PDF/UA requirements. A validation result does not by itself show that a particular reader or extraction tool will produce the desired prose order or layout. veraPDF validation
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Match the remedy to the failure

What you observe What to investigate What the check does not establish
Selectable text extracts as wrong characters or symbols Font encoding and the quality or absence of the /ToUnicode mapping That fixing a map will also restore reading order, OCR accuracy, or document structure
The page has no selectable text Whether it is an image-only page and whether OCR is needed That a font-map change can create text from an image
Characters are correct but lines, columns, or tables are scrambled Text sequence and layout reconstruction; compare extraction modes with the rendered page That correct character decoding means the text order is correct
Recognized text is selectable but differs from the scan The quality of the OCR-created text layer That a successful text extraction confirms the OCR recognized the page accurately
Headings, paragraphs, or table relationships are missing Whether the PDF encodes semantic structure or only visual positioning That Unicode characters alone preserve those relationships

PDF standards details can matter when investigating how text is represented; for example, the PDF Association publishes clause 9 errata for PDF 32000-2:2020. Such standards material is distinct from checking whether an extraction tool produces the order or structure a reader needs. PDF Association: Text errata for PDF 32000-2:2020, clause 9

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 2
CZUR Lens800 Pro Portable 8MP A4 Document Scanner
CZUR Lens800 Pro Portable 8MP A4 Document Scanner
Product Performance: 8MP Camera, 270 DPI, Resolution: 3264*2448; Single USB Connection: One single USB connection provides power & data
$99.00
Bestseller No. 4
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Scanner type: Document; Connectivity technology: USB; With Auto Scan Mode, the scanner automatically detects what you're scanning
$75.00
Rank #4
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
  • Scanner type: Document
  • Connectivity technology: USB
  • With Auto Scan Mode, the scanner automatically detects what you're scanning
  • Digitize documents and images
Rank #3
Plustek Mobile Scanner S410 Plus - Compact Portable Document Sheet-Fed | Support Windows 7 / 8 / 10 / 11, Featuring Button-Free Scanning with Included OCR Software. USB Powered
  • Digitize on the Go - Connect to your computer via BUS powered, eliminating the need for batteries or external power sources
  • Button Free Scanning Experience - The S410 Plus is an automatic scanning device, no need to push any buttons or click any screens, and automatically processes images and saves them to the designated folders
  • Versatile Paper Handling - Easily scan documents ranging from Letter and Legal sizes to business cards, plastic ID cards, invoices and receipts
  • Ultra compact & Lightweight - Weighing less than 1 lb, lighter than a bottle of mineral water, and its slim design is perfect for portability
  • Work smarter with Plustek Docaction - Built-in OCR allows you convert the files into editable, such as searchable PDF, excel or word. Seamless save to your local computer, FTP and even shared folder

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

document accessibilityOCRPDFPDF text extractionToUnicode

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.