Skip to main content
HerePDF

Guide

Making a Scanned PDF Searchable Without Uploading It - and How Far to Trust the Result

By Happy Turtle Tech ยท Published

Part of the topic Prepare a PDF for an Online Submission

You scanned a letter, a contract or a stack of receipts, and now the search box finds nothing and you cannot copy a single word. That is normal: a scan is a picture of paper, and a picture has no text in it. If you are not sure which kind of PDF you have, scanned versus text PDFs shows how to tell. This guide is about the fix, optical character recognition (OCR), and about a question most OCR pages skip: how often the words it adds are wrong. We measured that on pages where we knew every word.

What OCR adds to the file

The OCR PDF tool draws each page as a picture at 200 DPI (lower for a very large page), reads the words in it, and writes each word back as invisible text lying over the spot where it appears. Your PDF reader can then find it, select it and copy it, while the page looks exactly as it did: the scan itself is not redrawn, sharpened or compressed. You can also download the words as a .txt file.

Each page gets a label from the engine's own estimate of how sure it is, a confidence from 0 to 100. At 80 or above the page is labelled good. From 50 to 79 it is labelled check this page and still gets a text layer. Below 50 it is too poor to add text, and that page is left without a layer, because searchable text that is mostly wrong is worse than none.

How often the words come out wrong

We wrote three documents - a typed letter, an appointment letter and a shop receipt, all invented - and drew each one as a scan under different conditions: clean, blurred, tilted, faint, speckled, shadowed, turned. Each set of pages went into a PDF and through the tool's own code with its English language data (tesseract.js 7.0.0), and we compared what came out with the text we started from. The error rate is the number of characters added, dropped or changed, divided by the length of the real text. These are synthetic pages in clean fonts, not real scanner, fax or phone output, so treat them as the shape of the behaviour, not a prediction for your file. Confidence is shown as the range over the pages in each row.

Synthetic scanEngine confidenceLabel the tool gaveCharacters wrong
Clean scan, 300 DPI94 to 95good0.06%
Ordinary office scan, 200 DPI, slight tilt and blur93 to 95good0.06%
Heavy speckle, as from dirty glass92 to 95good0.06%
Faint grey print86 to 95good0.38%
Low resolution, 100 DPI91 to 95good0.19%
Small print (8 pt) at 100 DPI86 to 93good1.1%
Small print (8 pt) at 300 DPI94 to 95good0.06%
Tilted 3 degrees88 to 94good0.55%
Tilted 6 degrees80 to 87good6.4%
Our degraded test scan: tiny print on a grey gradient (one dense page)69check this page8.1%
Shadow across the page, nothing else92 to 95good0.13%
Phone photo: shadow, slight tilt, blur, grain64 to 77check this page18.4%
Very faint print on grey paper, speckled12 to 20too poor to add textmore than 100%
Badly degraded: blurred, tilted, heavy noise, 150 DPI16 to 18too poor to add textmore than 100%
Page sideways30 to 47too poor to add text92.7%
Page upside down30 to 42too poor to add text85.2%
The sideways pages after Rotate93 to 95good0.06%

The full results, method and every page's figures are in the data file.

What the labels mean in practice

Good meant good on most pages: 27 of the 33 pages labelled good had fewer than 1 character in 100 wrong. But a good label is not a promise. The worst good page, the letter tilted 6 degrees, scored a confidence of 80 and had 8.1% of its characters wrong, including its reference number: NCH/2026/0415 instead of NCH/2026/0418. On the 100 DPI receipt, also labelled good, the total of 50.70 came out as 568.70 and the year 2026 as 2826. Numbers are where a mistake does the most harm and is the hardest to spot, so check them against the page.

Check this page meant real errors: the pages with that label had 8.1% to 33.7% of characters wrong. A search on such a page will miss a fair share of the words it holds. If the page matters, rescan it.

Too poor to add text pages scored 12 to 47, and what the engine read on them was mostly wrong: on the very faint and badly degraded pages it produced more characters than the page holds, most of them noise. The tool adds no layer to them. The .txt download still includes what was read on every page, these included, so look at the page labels before relying on it.

On all 37 pages that got a layer, the text read back from the downloaded PDF had exactly the same errors as the text the engine produced: the layer adds no mistakes of its own. We read it back with PDF.js, the engine behind Firefox's viewer; we have not checked selection in Acrobat or Preview.

Getting a better result

  • Turn the pages upright first. Every sideways or upside-down page was too poor to add text (confidence 30 to 47). The same sideways pages, put right with the Rotate tool, were labelled good with 0.06% of characters wrong. Fixing a sideways PDF covers the rotation that does not stick.
  • Keep it straight. A 3 degree tilt cost little (0.55% wrong); at 6 degrees it was 6.4%, while every page was still labelled good. Square the page on the glass, or crop and straighten in your scanning app.
  • 300 DPI is plenty. The tool reads a page at 200 DPI (lower only for a very large page), and our clean 300 DPI scan and ordinary 200 DPI scan came out the same (0.06% wrong). Ordinary print survived 100 DPI (0.19% wrong), but small print did not: the 8 pt receipt at 100 DPI had 4.4% wrong, and the same receipt at 300 DPI 0.39%. Scan receipts and footnotes at 300.
  • Keep the contrast. Faint grey print (0.38% wrong) and heavy speckle (0.06%) were each fine. Very faint grey print on grey paper, with speckle, failed completely, although we could read it easily by eye. Avoid toner-saving and light scan modes.
  • Small flaws add up, especially on phone photos. A shadow across the page on its own did almost nothing (0.13% wrong), and neither did speckle or a 3 degree tilt on its own. Our phone-photo pages combined a shadow with a slight tilt, a little blur, grain and heavier JPEG compression, and every one dropped to check this page, with 18.4% of characters wrong overall. Shoot in even light, hold the phone square and steady, and save at the best quality the app offers.
  • Pick the document's language before you start, so the engine expects the right words and letters.

Languages and limits

The tool reads English, French, German, Spanish, Italian, Portuguese and Dutch, all in the Latin alphabet. Greek, Cyrillic, Arabic, Chinese, Japanese and Korean are not offered. The invisible text uses a font that covers Western European letters, so a character outside that range is dropped from the layer and counted in the result, never written as a "?". It does not read handwriting. Pages that already have text are skipped by default; switching that off adds a second layer on a page that has one. And a text layer is the engine's best reading of the picture, not a check of what the document says: the picture is still what a reader sees.

Why a scan is worth keeping on your device

The documents people scan are often the most sensitive they have: identity documents, medical letters, bank statements, signed contracts. The common way to OCR one online is to upload it to a service that reads it on its servers. HerePDF's OCR runs in your browser instead, and the file is not uploaded. The first run downloads the recognition engine (roughly 1.5 MB) and the data for the language you chose, about 2 to 5 MB in all, from HerePDF itself, never from a third party. Those files, not your PDF, are kept in your browser's cache storage, so later runs usually do not download them again; clearing the site's data removes them.

OCR is the one tool that does not work offline straight away. Its files are not part of the copy of the site your browser stores; they are saved the first time you use OCR while online on a later page load than the one that stored the site. After that, the language you used works with no connection until your browser clears it, and a language you have not used still needs one; using HerePDF with no internet explains why. Client-side PDF privacy covers what browser-only processing does and does not protect. The work uses your own device's time, page by page, so a long document takes a while. We quote no speed, and the tool has not yet been run on a real phone.

After OCR

The layer is small. On our test pages it added 4.9 KB to 8.4 KB a page: the least on pages of about 185 words, the most on the dense test page of 1,287 words. That was 0.8% to 11.4% of the file, the larger share on a 100 DPI scan, where the picture itself is small. Once the layer is there, your reader's search finds the words, and the Extract Text tool can pull them out. If copied text comes out in a strange order, why copied PDF text comes out jumbled explains what a text layer does and does not store.

Everything here runs in your browser. The file is read and rewritten on your device, and nothing is sent to a server.

Frequently asked questions

Does OCR change how my scan looks?

No. It adds an invisible text layer over each page it can read, and the pages are otherwise left exactly as they were. Pages it cannot read well enough, blank pages and pages that already have text are written back unchanged.

How accurate is it?

It depends on the scan. On our clean synthetic pages almost every character was right; on simulated phone photos with a shadow, a slight tilt, blur and grain, about 18.4% of characters were wrong. Each page gets a label from the engine's own confidence, which tracked the error rate in our test but is not a check, so read numbers, names and dates against the page.

Can it read handwriting?

No. It is built for printed text. We have not measured handwriting, so we make no claim about it beyond that.

How long does it take?

We do not quote a speed. The work runs on your own device, one page at a time, so a long document takes a while, and you can cancel at any point. It has been tried in Chromium and WebKit browsers on a computer, but not yet on a real phone.

Is my scan uploaded?

No. Recognition runs in your browser. The first run downloads the engine and the language data, about 2 to 5 MB depending on the language, from HerePDF itself and never from a third party. Your PDF is never uploaded or stored.

How much bigger does the file get?

A little. On our test pages the text layer added 4.9 KB to 8.4 KB a page, 0.8% to 11.4% of the file. The picture of the page is not touched, so the size of the scan itself does not change.