DoraPDF / Blog

Extracting Text From Images: What OCR Can and Cannot Read (Including Urdu)

By the DoraPDF team · 4 min read · Updated 2026-11-24
Extracting Text From Images: What OCR Can and Cannot Read (Including Urdu)

OCR (optical character recognition) feels like magic when it works: point it at a photo of a page and editable text appears. When it does not work, you get a jumble of random letters and wonder what went wrong. Most of the time, the answer is predictable. This guide explains what OCR handles well, where it struggles, including the common question of how to get Urdu text from an image, and how to set yourself up for clean results with DoraPDF's Image to Text Converter and PDF OCR.

How OCR works, in one paragraph

An OCR engine looks at an image, finds areas that look like lines of text, splits them into words and characters, and matches the shapes against patterns it has learned for a specific language. DoraPDF uses the open-source Tesseract engine, running inside your browser. The language you pick decides which patterns it uses, which is why choosing the right language matters more than any other setting.

What OCR reads well

For these, you can usually copy the result with only minor corrections.

What OCR struggles with

Handwriting. Tesseract is built for printed text. Neat block letters sometimes work; joined-up handwriting and class notes usually come out with many errors. Treat any handwriting result as a rough draft at best.

Urdu Nastaliq. Urdu is supported, but printed Nastaliq is genuinely hard for OCR: letters join and change shape, words slope diagonally, and dots sit close to neighbouring characters. Researchers have worked on Urdu text recognition for years for exactly this reason. Expect clean, large, printed Urdu (like a computer-typed document or a clear newspaper headline) to give usable results that still need proofreading, and small, dense or decorative Urdu text to produce many mistakes. Naskh-style Arabic script and computer-typed Urdu in simpler fonts tend to do better than calligraphic text.

Mixed languages on one page. The tools take one language per run. An English form with Urdu names will read the English well and the Urdu poorly, or the other way round. For mixed pages, run the image twice, once per language, and combine the parts you need.

Poor photos. Blur, shadows, glare, curved book pages, very small text and low resolution all reduce accuracy sharply.

Text on busy backgrounds. Posters, memes and text over photos confuse the line detection.

Tables and columns. The text is usually recognised, but the layout is not kept. Columns may be read across, and tables come out as plain lines of text.

How to get better results

  1. Start sharp. Use the rear camera, hold the phone parallel to the page, tap to focus, and shoot in daylight.
  2. Straighten and clean the page first. Run the photo through Scan to PDF: drag the corners to the page edges and choose the Black & white filter, which gives OCR strong contrast. Then OCR the result.
  3. Crop to the text you need. Less clutter means fewer mistakes.
  4. Pick the correct language before pressing Extract text.
  5. Proofread. Especially numbers, names and Urdu text. OCR errors look plausible, which makes them easy to miss.

Image to Text: for photos and screenshots

  1. Open Image to Text and choose the Language.
  2. Add one or several images. With several, the text of each image is labelled with its file name.
  3. Press Extract text. The text appears in a box where you can copy it or download it.

The first time you use a language, the browser downloads its recognition data once, which takes a moment. If the tool reports that no readable text was found, the image is probably too blurry, too small or the wrong language was selected.

PDF OCR: for scanned PDFs

If you have a scanned PDF where you cannot select or search text, PDF OCR recognises each page (up to 60 pages per run) and gives you two files: a searchable PDF that looks like the original but has an invisible text layer, and a plain text file with all the recognised text, page by page.

One honest limitation: the invisible text layer in the searchable PDF uses a standard Latin font, so for Urdu, Arabic, Hindi, Chinese or Russian scans the search layer will miss those characters. The plain text file still contains the recognised text, so use that file for non-Latin scripts.

Big PDFs take time, roughly several seconds per page, so start with a few pages if you are testing.

Privacy

OCR is often used on private material: ID cards, letters, contracts, medical reports. Both Image to Text and PDF OCR run on your device; your images and PDFs are not uploaded to our server. Only the language data is downloaded to your browser.

FAQ

Can I extract Urdu text from an image? Yes, choose Urdu as the language. Clear, printed Urdu gives the best results; Nastaliq calligraphy, small print and handwriting often need heavy correction.

Can OCR read handwriting? Only to a limited extent. Neat printed letters may work, but cursive and fast notes usually do not.

Why is my text full of strange symbols? Usually the wrong language was selected, or the image is blurry or low resolution. Fix those and try again.

Does OCR keep the layout? Image to Text gives plain text. PDF OCR keeps the original page appearance in the searchable PDF, but the extracted text itself is plain.

Is there a page limit? PDF OCR processes up to 60 pages per run. Split larger documents and run them in parts.

Try the tools from this guide — free

Keep reading

Guide

Image to Text Converter for Urdu, English and 11 More Languages: Copy Text from Photos

Copy text from photos, screenshots and scanned notes for free. Supports Urdu, English, Arabic, Hindi and more, with OCR that runs in your browser.

Guide

Private Offline OCR for Windows and Linux: Extract Text Without Uploading Files

Offline OCR software for Windows and Linux: turn scans and photos into searchable PDFs and text in 13 languages with DoraPDF Desktop, without uploading.

Guide

How to Turn Handwritten Notes into a Neat PDF (Scan, Clean, Share)

Scan handwritten notes with your phone camera into a clean, multi-page PDF: crop, black and white filter, small file size, and when OCR can help.