Fix Incorrect or Misaligned Text Selection in PDF Files
Question details
The user is unable to select text properly in specific PDF files, experiencing image-like drag boxes or misaligned vertical selections instead of normal text highlighting.

- Product
- Device & OS
- not provided
- Scenario
- Attempting to select, copy, or highlight text within a PDF document for editing or reviewing purposes.
- Observed behavior
- In one document, the selection tool draws a free-form box as if the page is an image. In another document, text selection becomes vertical or misaligned, even though some parts appear to be selectable text.
Determine whether your PDF is a scanned document (image-based) or a text-based file, as image-based files naturally do not allow standard text selection without extra processing.
Use OCR to Rebuild the Text Layer
If the PDF is an image-based file (like a scan) or has a damaged text layer, running Optical Character Recognition (OCR) will extract and reconstruct selectable text.
PDF pages that behave like flat images completely lack a readable text layer. Even if a PDF appears to have text, poor encoding during its creation can scramble the font data, causing misaligned or vertical selections.
Applying OCR scans the visual appearance of the characters and generates a brand new invisible text layer that you can cleanly select.
Open your PDF editor and navigate to the 'Tools' or 'Edit' tab, then select the 'OCR' (Optical Character Recognition) feature.
Choose the option to either make the current document searchable and selectable, or extract the text to a new file.
Click 'Start' or 'Convert' to process the document. Once finished, use the standard text selection tool to try highlighting the text again.

Recreate the PDF from the Source File
Re-exporting the PDF using standard system fonts resolves selection errors caused by unusual text encoding or corrupted font information.
Fix PDF Text Selection Issues using WPS Office OCR
WPS Office features a robust built-in PDF toolkit with an advanced OCR engine. It can quickly convert scanned, unselectable, or poorly encoded image-based PDFs into fully selectable and editable text.
- 1. Open your PDF in WPS: Launch WPS Office and open the PDF file that has text selection issues.
- 2. Access the OCR Tool: Navigate to the 'Tools' tab on the top ribbon and click on the 'OCR' button.
- 3. Extract Selectable Text: Choose 'Extract Text' to pull the content into a selectable text box, or 'Convert to Word' to generate a fully editable Microsoft Word document.

Frequently Asked Questions
Why does my cursor draw a box instead of selecting text in my PDF?
This happens when the PDF page is actually an image (such as a scanned document) rather than a digital text file. To make the text selectable, you need to use an OCR (Optical Character Recognition) tool to analyze the image and generate a digital text layer.
Why is my text selection highlighting vertically instead of horizontally?
Vertical or misaligned highlighting is usually caused by corrupted font encoding, incorrectly rotated text boxes, or a poorly generated text layer during the PDF export process. Recreating the PDF from the original file or using an OCR tool can resolve this alignment issue.
Can I fix a PDF with damaged fonts if I don't have the original source file?
Yes. The best workaround when you don't have the original source file is to convert the problematic PDF pages into an image format (like PNG or JPG), and then run an OCR tool on those images to generate a fresh, accurate, and selectable text layer.




