Export Text From a PDF With Corrupted Font Encoding
Question details
The user needs to export readable plain text from a PDF whose font encoding appears to be corrupted.

- Product
- PDF text extraction
- Device & OS
- not provided
- Scenario
- Exporting the contents of a PDF to a plain text file.
- Observed behavior
- The exported text is unusable, apparently because the PDF's font encoding is corrupted.
Check whether you have the original document used to create the PDF. If not, make sure you can export PDF pages as high-quality images and access an OCR tool that supports the document's language.
Recreate the PDF From the Original Document
Use the source document when available to create a PDF with extractable text.
Open the original document in the application used to create it, such as a word processor or spreadsheet.
Use the application's File > Export or Save As option to create a new PDF.
Open the new PDF, select and copy a passage, and paste it into a plain text editor to check that the characters are readable.
Run OCR on Images of the PDF Pages
Use OCR to recover text when the original document is unavailable and the PDF's encoded text cannot be extracted.
Use WPS Office to Recognize Text in PDF Page Images
Use WPS PDF to convert pages to images and recognize their text with OCR, then copy the result into a plain text editor. OCR availability and feature names may vary by version or plan.
- 1. Open the PDF: Open the affected file in WPS Office and view it in WPS PDF.
- 2. Convert pages to images: Choose the PDF-to-picture tool and export the pages at high quality. If the tool is unavailable in your version, use another PDF-to-image converter.
- 3. Run OCR: Open the exported images or combine them into a new PDF, then choose the OCR or text recognition tool in WPS. Select the appropriate language if prompted.
- 4. Save and verify the text: Copy the recognized text into a plain text editor and save it as a TXT file. Compare the result with the PDF pages and correct any errors.

Frequently Asked Questions
Why does copied PDF text contain the wrong characters?
The PDF may have damaged or incorrect font encoding, so the characters displayed on the page do not map correctly to extracted text. If copying a passage into a text editor produces gibberish, try recreating the PDF or using OCR.
Can I recover the text without the original document?
Yes. Export the PDF pages as high-quality images, combine them into a new PDF if needed, and run OCR to recognize the visible text.
Will OCR preserve tables for a spreadsheet?
Not necessarily. OCR may recognize the words but lose row and column structure. Paste or export the result into a spreadsheet and check the cells against the original pages.
What should I do if OCR misses characters?
Export the pages at a higher resolution, select the correct recognition language in the OCR tool, and run recognition again. Review the output against the original PDF.





