How to convert a scanned PDF into editable text

A scanned PDF is a picture, not a document. There is no text inside it to copy, which is why selecting it does nothing — the letters you can see are pixels. Turning it into editable text means running optical character recognition (OCR): software that looks at the shapes and writes out the characters it recognises. Upload the file, let OCR build a text layer, then correct what it got wrong. The correction pass matters more than the tool.

First, confirm it really is a scan #

Open the PDF and try to select a sentence. If the text highlights, the file already has a text layer — copy and paste works, and you do not need OCR at all. This is worth checking because PDFs produced from Word or Google Docs are text-based, while anything that came out of a scanner, a photocopier or a phone camera is not.

A second sign: text-based PDFs render crisply at any zoom, while scans blur as you magnify.

What OCR reads well, and what it does not #

InputResultWhat to expect
Clean printed pages, straight, 300 dpiExcellentA handful of corrections per page
Skewed or slightly rotated pagesGoodCorrect the slant first if the tool allows it
Two-column layoutsMixedColumns may interleave; expect to reorder paragraphs
TablesPoor to fairText survives, structure does not; rebuild the table by hand
Faded print, faxes, photocopies of photocopiesPoorErrors cluster in numbers and proper nouns
HandwritingUnreliableModern tools attempt it; treat the output as a draft, not a record

Get a better scan before you process it #

OCR cannot recover detail that was never captured. Five minutes of preparation saves an hour of correction:

  • Scan at 300 dpi, greyscale for text pages. Lower resolutions lose thin strokes; higher ones mostly add file size.
  • Straighten the page. A few degrees of skew is enough to confuse line detection.
  • One page per image if you are photographing. Two pages at an angle produce columns that interleave.
  • Deskew and crop borders so the text block starts near the edge of the frame.

The workflow #

  1. Upload the PDF to a tool that runs OCR — UberTextract accepts PDFs and images, including photographed pages.
  2. Extract the text and check the first page before processing a hundred. The first page tells you whether the rest is worth running.
  3. Fix structure before words. Rejoin paragraphs split by hard line breaks, repair hyphen-
    ation across lines, and remove repeating headers and footers.
  4. Then check the facts. Numbers, dates, names and units are where OCR errors change meaning rather than meaning-little.
  5. Keep the original. Always retain the PDF; the extracted text is a working copy, not the record.

Cleaning the output is the real job #

Raw OCR output looks wrong even when every character is right, because the line breaks follow the page rather than the sentence. Two passes fix most of it:

  • Reflow paragraphs — replace single line breaks inside paragraphs with spaces, keeping double breaks. In most editors this is a find-and-replace.
  • Repair hyphenation — search for “- ” and join the halves. Check the results in words like “co-operate”, where the hyphen is real.

Then read the document once at normal speed. It is the only reliable way to catch the substitutions OCR makes between similar shapes: 1 and l, 0 and O, rn and m.

Where to run the OCR #

Three places, with different trade-offs:

OptionGood forWatch for
The scanner’s own softwareNew documents you are scanning yourselfQuality varies widely; often locked to that scanner. Cheapest when it works.
An online toolOccasional files, photographed pages, no installYou are uploading the document somewhere. Fine for public material, a policy question for anything confidential.
A desktop application or libraryBulk jobs, sensitive files, repeatable pipelinesSetup time, and you own the results. Tesseract is the common open-source engine underneath many of the others.

For a one-off page, the online route is fine. For a hundred confidential invoices, run it locally — or check where the tool stores your files and for how long, which is the question most tools answer badly.

When OCR is not enough #

Three cases justify a person instead of a tool: handwriting that will be relied on, degraded historical documents, and anything where the exact wording is evidence — contracts, medical records, legal correspondence. In those cases the cost of one wrong digit outweighs the cost of the transcription.

Frequently asked #

Can I convert a scanned PDF to Word? #

Extract the text first, then paste it into Word. Direct conversion tools exist but produce the same OCR output wrapped in a document, and the cleanup work is identical.

Why does my PDF still copy as an image? #

Because it has no text layer. Copying a scan returns nothing useful until OCR has been run. Some scanners add a text layer automatically at capture time — check before paying for a second tool.

Can it read tables and keep the columns? #

Text inside a table is usually recovered; the table structure is not. For spreadsheets, export to CSV at the source if you still can, or rebuild the table by hand afterwards.

Is OCR accurate enough for invoices? #

For reading, usually. For automated processing, only with validation: totals checked against line items, supplier matched against a known list, and anything that fails routed to a person. That combination is what makes invoice automation work in practice.

Open UberTextract

Share to...