Other PDF Issues

What is Identity-H in PDF Fonts? How to Fix Text Extraction Issues

Huma Ashraf ChHuma Ashraf Ch Nov 3, 2026 869 views

Question details

The user needs to understand the meaning of the Identity-H font encoding in PDFs and how to resolve issues where text cannot be properly extracted or copied.

Understanding Identity-H in PDF Fonts and Fixing Text Extraction
Product
PDF
Device & OS
not provided
Scenario
Copying or extracting text from a PDF file containing Identity-H encoded fonts.
Observed behavior
Text extraction fails or produces incorrect characters because the PDF lacks a correct ToUnicode CMap, despite the Identity-H encoding itself being normal.
Before you start

Verify whether the text extraction issue occurs across multiple PDF viewers or just one, and ensure you are not dealing with a scanned document that requires OCR instead of standard text extraction.

Solution 1Recommended

Export the PDF Using Unicode Fonts and Modern Tools

Re-exporting the original document using standard Unicode OpenType or TrueType fonts ensures a proper ToUnicode mapping is generated for text extraction.

Identity-H is a normal font encoding method that maps character codes directly to visual glyphs. However, for a computer to understand what those glyphs mean when you copy text, the PDF must include a ToUnicode CMap.

Using legacy or non-Unicode fonts when creating a PDF often omits this essential mapping. To resolve this, you must recreate the PDF from the original source file using modern standards.

1
Open the Source Document

Open the original source document in a modern authoring tool like Adobe InDesign, Microsoft Word, or WPS Office.

2
Replace Legacy Fonts

Highlight the text and replace any legacy, non-Unicode fonts with standard Unicode OpenType or TrueType fonts (such as Arial, Times New Roman, or Calibri).

3
Export to PDF

Export the document to PDF using built-in PDF export functions or Acrobat PDFMaker. Ensure that 'Embed Fonts' and 'Accessibility' options are checked in the export settings to preserve the ToUnicode CMap.

Export the PDF Using Unicode Fonts and Modern Tools
Why This Works: Modern authoring tools automatically generate the required ToUnicode CMap when exporting PDFs with standard Unicode fonts, making the resulting text fully extractable.
Create Searchable PDFs with WPS Office

Easily Create and Export Standard PDFs Using WPS Office

WPS Office provides seamless PDF creation and editing tools. By exporting your Word, Excel, or PowerPoint documents to PDF with WPS Office, you ensure proper font embedding and text extraction without worrying about Identity-H mapping errors.

  1. 1. Open your Document: Open your original document (Word, Excel, or PowerPoint) in WPS Office.
  2. 2. Access PDF Export: Go to the 'Menu' tab and select 'Export to PDF'.
  3. 3. Check Export Settings: In the export dialog, click 'Advanced Settings' and ensure standard font settings are applied so fonts are properly mapped.
  4. 4. Save the PDF: Click 'Export' to save your file as a standard, easily extractable PDF document.
Automatically embeds standard fonts for flawless text extractionFully compatible with Adobe Acrobat and Microsoft Office formatsBuilt-in PDF editor to easily modify, merge, or convert filesAdvanced OCR feature to extract text from flattened or poorly encoded PDFs
microsoft office alternative - wps office

Frequently Asked Questions

Is Identity-H an error in my PDF file?

No, Identity-H is a standard and common font encoding method used in PDFs to map character codes directly to visual glyphs. It is completely normal for displaying text. However, text extraction relies on an additional component called the ToUnicode CMap, which is sometimes missing.

Why does my copied text show up as gibberish or square boxes?

This happens when the PDF lacks a correct ToUnicode CMap. Without it, your computer doesn't know how to translate the visual glyphs (Identity-H) back into standard text characters like letters and numbers when you try to copy them.

How can I tell if my PDF has a correct ToUnicode mapping?

You can test this by selecting a paragraph of text in your PDF viewer, copying it, and pasting it into a plain text editor like Notepad. If the text appears correctly, the mapping exists. If it appears as random characters or symbols, the ToUnicode mapping is missing or broken.

Can I fix the Identity-H extraction issue without the original file?

Fixing the internal font encoding of a PDF without the source file is extremely difficult. The most reliable workaround is to use a PDF editor with Optical Character Recognition (OCR) to read the document visually and extract the text.