naps2
Home / Guides / OCR

naps2 OCR - How to Create Searchable PDFs from Scans

By naps2 Editorial Team17 November 20266 min read
naps2 OCR - How to Create Searchable PDFs from Scans

A scanned page is, by default, just a picture. The OCR feature in naps2 changes that, adding a hidden text layer that lets you search, select and copy words. This article explains how to set it up and how to obtain the most accurate results.

Key takeaways
  • naps2 uses Tesseract OCR with support for over 100 languages.
  • Scan at 300 DPI in greyscale and deskew pages for best accuracy.
  • Searchable PDFs keep the original image with a hidden text layer.
  • Existing image PDFs can be imported and made searchable.

What OCR does inside naps2

Optical character recognition analyses the shapes on a scanned page and identifies letters, words and lines. naps2 uses the Tesseract engine for this task and then embeds the recognised text invisibly behind the page image in the PDF. Visually, the document is unchanged; functionally, it becomes searchable and selectable.

After saving a scanned document, open the PDF and search for a distinctive word that appears on a page. Try selecting and copying a short passage as well; this helps reveal whether the text layer matches the visible image.

If results are inaccurate, check that the correct OCR language is selected and the page is straight and legible. Rescan a sample at a suitable resolution, then compare accuracy and file size before processing a large batch.

This has practical consequences. You can search an archive of hundreds of scanned invoices for a single supplier name, copy a paragraph from a contract into an email, or let a screen reader read a scanned letter aloud.

Enabling OCR for the first time

  1. Open naps2 and select OCR on the toolbar.
  2. Choose Download languages and tick each language you scan regularly.
  3. Select Download and wait for the data to install.
  4. Back in the OCR settings, tick Make PDFs searchable using OCR and choose your language.
  5. Select whether OCR should run automatically after scanning or only when saving.

From this point onwards, every PDF you save will include a text layer.

Choosing OCR languages wisely

naps2 supports more than one hundred languages, including scripts such as Arabic, Urdu, Hindi, Chinese, Japanese and Russian. Select only the languages you actually encounter: each additional language slightly slows recognition and can occasionally introduce errors when the engine tries to match characters to the wrong alphabet.

For bilingual documents, enable both languages together. naps2 will then recognise passages in either language on the same page.

Scan settings that improve accuracy

  • Resolution: 300 DPI is the sweet spot for printed text. Small print may benefit from 400 DPI; going higher rarely helps.
  • Colour mode: greyscale is usually best. Pure black and white can break thin characters on faint originals.
  • Alignment: use naps2’s deskew tool to straighten crooked pages before saving.
  • Contrast: increase it slightly for faded receipts and photocopies.
  • Cleanliness: wipe the scanner glass; dust specks can be mistaken for punctuation.

OCR modes and speed

naps2 lets you balance speed against accuracy. A faster mode suits routine office paperwork, while a more thorough mode suits difficult originals or documents that must be indexed precisely. On large batches, you can let OCR run in the background while you continue scanning, so the time cost is barely noticeable.

Checking whether OCR worked

Open the saved PDF in any reader and press Ctrl+F (or Cmd+F on a Mac). Search for a word you know appears on the page. If the reader highlights it, the text layer is present. You can also try selecting text with the cursor: on a searchable PDF, words become selectable rather than the whole page behaving as a single image.

Fixing poor recognition

If results are disappointing, work through these checks in turn:

  1. Confirm that the correct language is selected.
  2. Rescan at 300 DPI in greyscale rather than at low resolution.
  3. Deskew and crop the page to remove dark borders.
  4. Try the more accurate OCR mode.
  5. Accept that handwriting and highly stylised fonts are beyond most OCR engines.

OCR on the command line

naps2’s console interface can apply OCR automatically, which is ideal for unattended scanning. A typical command looks like this:

NAPS2.Console.exe -o "C:\Scans\letter.pdf" -p "Documents" --ocrlang eng

Combined with a scheduled task or a batch file, this produces searchable PDFs without opening the main window at all.

Understanding how the text layer works

It helps to understand what a searchable PDF actually contains. naps2 keeps the original scanned image exactly as captured and places recognised text on an invisible layer positioned precisely over the corresponding words. When you search or select, the PDF reader uses this hidden layer; when you view or print, you see the untouched image. This is why OCR errors never alter the appearance of the document – they affect only what is found when searching.

The approach also explains why OCR increases file size only slightly. Text is extremely compact compared with images, so adding a full text layer to a ten-page document typically adds just a few kilobytes.

OCR for different languages and scripts

naps2’s language support extends well beyond Latin-script languages. Urdu, Arabic and Persian, which are written right to left, are supported, as are Devanagari, Bengali, Chinese, Japanese, Korean, Cyrillic and Greek scripts. Recognition quality is strongly influenced by scan quality for complex scripts, so 300 to 400 DPI in greyscale is recommended.

Where a document mixes scripts – for example, an Urdu letter with English reference numbers – enabling both languages produces markedly better results than either alone. Avoid enabling many languages at once, however, as this slows recognition and can increase misreadings.

Building a searchable archive

OCR becomes truly valuable at scale. Once every scanned document is searchable, your computer’s own search tools – Windows Search, Spotlight on macOS, or desktop search tools on Linux – can index the contents of your PDFs. Typing a supplier name, a policy number or a reference into the system search box then finds the relevant document within seconds, regardless of what the file is called.

To make the most of this, combine OCR with a consistent folder structure and file-naming placeholders, so that documents are easy to locate both by content and by date.

Accessibility benefits

Searchable PDFs are also more accessible. Screen readers used by blind and partially sighted people can read the OCR text layer aloud, whereas an image-only PDF is effectively silent. For schools, public bodies and businesses with accessibility obligations, enabling OCR in naps2 is a simple, cost-free step towards documents that everyone can use.

OCR versus editable documents

A common misunderstanding is that OCR converts a scan into an editable Word document. naps2’s OCR produces a searchable PDF instead: the page image is preserved and the text is placed invisibly behind it. If you need editable text, you can copy it from the PDF and paste it into a word processor, where minor corrections may be required. For most archival and reference purposes, however, a searchable PDF is preferable, because it preserves the original layout, signatures and stamps exactly.

Applying OCR to documents you already have

Many people have folders of image-only PDFs created by other scanners. naps2 can rescue them. Use Import to load the existing PDF or images, enable OCR and save a new copy. The result looks identical but is now fully searchable. For large collections, the command-line tool can process many files in sequence, turning an unsearchable archive into a useful one in an afternoon.

Choosing between speed and precision for large archives

When digitising a large archive, a pragmatic approach works best. Run a small pilot of perhaps fifty representative pages, test them with both a faster and a more thorough OCR setting, and search each result for a list of known words. If the faster mode finds nearly all of them, use it for the bulk of the work; reserve the more accurate mode for difficult material such as old typescript, small print or poor photocopies. Documenting the chosen settings in your scanning profile ensures that the whole archive is processed consistently, which matters when others will rely on searching it later.

Using OCR for archiving with PDF/A

For documents that must remain readable for many years – legal records, accounts or family papers – combine OCR with PDF/A output. PDF/A embeds fonts and avoids features that could become unsupported, while the OCR text layer ensures the archive remains searchable. Select PDF/A in naps2’s PDF settings before saving.

Check dates and reference numbers against the printed page before relying on search results. A faint digit can change the result even when most of the text is accurate.

Frequently asked questions

Yes. The Tesseract engine and all language data are included free of charge.

Yes. Once language data is downloaded, OCR runs entirely offline on your computer.

Not reliably. Tesseract is designed for printed text, so handwriting recognition is poor.

Yes. Import the PDF into naps2, enable OCR and save it again as a new searchable PDF.

Download the Urdu language in naps2’s OCR settings; on the command line its code is urd.

No. The text layer is very small, typically adding only a few kilobytes per page.

Conclusion

OCR transforms naps2 from a simple scanner tool into a genuine document-management aid. Download the right languages, scan at 300 DPI in greyscale, straighten your pages and enable searchable PDFs, and every document you save will be as easy to search as a word-processed file.

Download naps2 for Windows (x64)