How to Fix Gibberish Text When Copying from PDF
Question details
Users experience gibberish or incorrect non-English characters when attempting to copy and paste text from a PDF document.

- Product
- Device & OS
- not provided
- Scenario
- Extracting or copying non-English text from a generated PDF file to paste into another application.
- Observed behavior
- The selected text looks correct on the screen but pastes as completely unrecognizable, gibberish characters due to a missing or corrupted ToUnicode font mapping.
Ensure you have access to the original source document (like Word or Google Docs) used to create the PDF, as resolving font mapping issues at the core level requires recreating the file.
Recreate the PDF Using a Unicode-Compatible Font
The most reliable way to fix gibberish text is to change the font in the original document to a standard Unicode font and export the PDF again with proper font embedding.
When a PDF is created, glyphs (the visual drawing of characters) are mapped to actual text strings using an internal ToUnicode table. If this mapping is corrupted, missing, or unsupported by the chosen font, the text will copy as gibberish even if it looks perfectly fine on your screen.
Launch the word processor or design application where the document was initially created.
Highlight the non-English text that is causing issues and change its font to a widely supported Unicode-compatible standard, such as Arial, Times New Roman, or Calibri.
Navigate to the file export menu, select 'Save as PDF' or 'Export to PDF', and ensure that the option to 'Embed fonts' is checked in your PDF settings.
Open your newly generated PDF, select the previously problematic text, copy it, and paste it into Notepad or another text editor to confirm the gibberish issue is resolved.

Use OCR to Extract Text from the PDF
If you do not have the original file and cannot recreate the PDF, you can use Optical Character Recognition (OCR) to bypass the broken font encoding and convert the visual text into copyable characters.
Create and Edit Text-Searchable PDFs with WPS Office
WPS Office offers a comprehensive suite to create PDFs with correct font embedding and standard ToUnicode mappings. It also includes powerful OCR tools to effortlessly extract text from existing problematic PDFs without garbled characters.
- 1. Open Your Source File: Launch WPS Office and open the original document containing the non-English text.
- 2. Export with Correct Encoding: Go to the 'Menu', select 'Export to PDF', and click 'Advanced Settings' to ensure font embedding is active for proper copying.
- 3. Extract Text via OCR: If you only have the problematic PDF, open it in WPS PDF, go to the 'Tools' tab, and click 'OCR' to instantly recognize and safely copy the text.

Frequently Asked Questions
What is a ToUnicode mapping in a PDF?
ToUnicode mapping is an internal directory within a PDF file that connects the visual shapes you see on the screen (glyphs) to their actual, standard text values (Unicode). Without it, the computer does not know what character you are actually copying.
Why does the PDF display correctly but copy as gibberish?
The PDF contains the correct visual shapes (glyphs) and positioning data to draw the text on your screen, which makes it look perfect. However, it lacks the underlying font encoding needed to translate those shapes into copyable text data for your clipboard.
Can I fix the gibberish text without the original document?
Yes, but you will need to use Optical Character Recognition (OCR) software. OCR visually scans the PDF like an image and uses AI to convert the pictures of letters into brand new, correctly encoded copyable text.
Does this font mapping issue only affect non-English text?
While it frequently affects non-English text due to more complex character sets and custom regional fonts, it can happen to standard English text as well if the font used during PDF creation was heavily customized, corrupted, or improperly embedded by the generating software.




