Blog · Guides

OCR PDF

What OCR can and cannot do for your scanned paperwork

Optical character recognition, or OCR, tries to read the letters in a picture and turn them into real text. When it works, a scanned PDF becomes searchable, you can copy words out of it, and it can be converted into an editable file. When it does not, you still have a picture, now with an invisible text layer that may be wrong without telling you. Knowing which of those you are holding saves time and avoids awkward errors.

How OCR works on a PDF

A scanned document or phone scan is a series of images. A computer sees only pixels, so there is nothing to search or select. OCR studies those pixels, matches shapes to letters and words, and places a hidden layer of text behind the image. The page looks exactly as before, but search, copy and screen readers now have words to work with. In our OCR PDF tool that layer is stored for searching rather than lined up word by word, so a selection may not match the printed words; the separate .txt download is the easier way to copy text.

That detail is important: the picture stays on top. If the recognised text is wrong, the page will not show you the error. You only discover it when a search comes up empty or a copied figure is off by one digit.

Jobs OCR handles well

See OCR as a way to make image-only PDFs more useful, not as a promise that every character will be right.

Where recognition breaks down

The look-alikes are the real risk. A renovation quotation showing RM8,650 on the image might read RM8,550 in the text layer, and nothing on screen will warn you.

Language is the other catch for Malaysian paperwork. Our tool offers ten recognition languages, one per run, and Bahasa Melayu and Tamil are not among them (Simplified Chinese is). For a Malay letter, English is the nearest setting because both use the Latin alphabet, but expect more slips in Malay words and names. The language data is downloaded when you start, so you need to be online.

Giving OCR a good start

  1. Scan as well as you can. Even light, a flat page and a camera held straight above it. A flatbed scanner or a proper scanning app does better than a quick photo at an angle.
  2. Straighten pages first. Turn sideways or inverted pages upright with Rotate PDF. Recognition is far more reliable on upright text.
  3. Remove junk pages. Blank reverse sides and repeat shots only add work and confusion.
  4. Hold off on heavy compression. Strong compression blurs the letter edges OCR depends on. Recognise the sharp version, and do not run the OCR output through Compress PDF afterwards: that turns each page back into a plain picture and the searchable text is lost.
  5. Run the recognition. Use OCR PDF and download the output.

Testing the output

Before relying on the new text layer, put it to the test:

Do not treat OCR text as accurate enough for legal, medical or financial use without a person checking it. If you are sending something to LHDN, an insurer or a court, the image of the original is what counts, so double-check anything you retyped or copied from the recognised text.

Things OCR does not do

It does not remove a PDF password. It does not rearrange or tidy a messy layout. It does not prove a document is genuine, and it does not make a blurred scan look sharper to a human reader. All it does is add or improve a text layer so search and software can use what used to be only pixels.

When you can skip it

If all you need is to email or upload a clear scan, and nobody will search or copy the text, OCR is optional. Many portals only want a legible document. If the PDF already has selectable text, because it was exported from Word or saved from a website, running OCR again rarely adds anything and can sometimes confuse viewers with duplicated text. Use it when search, copying, accessibility or conversion is the aim, and check the result afterwards.

Checklist

Related guides