- OCR (Optical Character Recognition) adds a searchable text layer to image-based PDFs -- original pages stay untouched
- Accuracy is decided by four page properties: resolution, angle, contrast and noise � not by the language setting
- Auto-deskew tests every angle from -15 to +15 degrees in 0.5 degree steps, and rotates only at 0.5 degrees or more
- The default path does not binarise: forced thresholding measured a 0.67% character error rate against 0.00% on a clean scan
- AFFLIGO uses 100% private browser-based OCR engine with 8 language support
- 4 configuration options: OCR type (Force, Skip All Text, Skip Text and Meta, Skip OCR), deskew, clean before OCR
- Max 30MB per file � processing happens entirely in your browser
- Supports Google Drive and Dropbox import for cloud-based workflows
- Output: searchable PDF with an invisible text layer over the original pages
- After OCR, use other AFFLIGO tools to compress, merge, or protect the PDF
Why Your OCR Comes Out Wrong: The Deskew, DPI and Threshold Fix Table
OCR accuracy is decided long before a single character is recognised � by four properties of the page image. Here is which one broke, and what fixes it.
A recognition engine does not "read" a page. It measures shapes against a model of what a character should look like, and it is only as good as the four properties of the image it was handed: resolution (how many pixels a character occupies), angle (whether the baselines are level), contrast (whether ink is clearly separated from paper), and noise (speckles, scanner dust, JPEG artefacts). Get one of those wrong and the engine does not fail loudly � it returns confident, plausible, wrong characters. That is why "OCR is inaccurate" is almost never a fair diagnosis, and why chasing different language settings is usually wasted effort.
| Defect in the page | What the recogniser sees | The tell-tale symptom | What fixes it |
|---|---|---|---|
| Below 200 DPI | A character smears across 6-8 pixels, so a bowl and a curve become the same shape | Words come out as plausible but wrong strings; 0/O and 1/l interchange freely; totals are off by a digit | Re-scan at 300 DPI. No amount of preprocessing invents the detail that was never captured |
| Tilt of 2-5 degrees | The baseline drifts within a single line, so one word's tail overlaps the next word's head | Characters merge and split unpredictably; a single field reads correctly while its neighbours are garbage � the classic invoice symptom | Deskew before recognition. This is the highest-value single fix |
| Low contrast or a grey background | Ink and paper fall into the same grey band, so the threshold cannot separate them | Whole lines vanish, or entire pages come back nearly empty | Stretch the contrast range before thresholding |
| Speckle noise, dust, or JPEG ringing | Random dark blobs sit where there is no glyph | Random stray characters between the real ones; numbers pick up phantom digits | Median filter to remove isolated pixels, then sharpen, then threshold |
| Heavy skew, more than 15 degrees | The projection histogram has no dominant peak at all | Nothing improves, because no angle was detected to correct | Re-scan or re-align. The detector's range is bounded |
| Correct page, wrong language selected | The model is looking for letterforms that are not there | Output is near-empty, or every character is a plausible substitute | Set the language explicitly. This is the one cause that no amount of image fixing can solve |
Fix the angle and the resolution before you touch anything else. A skewed page at 300 DPI will usually OCR well once it is straightened; a perfectly straight page at 120 DPI will not, no matter how many cleanup passes you apply � the information was destroyed at scan time. And a 2-3 degree tilt is the reason a single invoice line can read perfectly while the total underneath it is nonsense: the engine resamples the page as it scans, so a tilted baseline guarantees a drifting character height across the line.
The OCR PDF tool runs a fixed pipeline on every page before Tesseract sees it, and the numbers below are the actual engine settings:
1. Render at a fixed 216 DPI. Every page is rasterised at scale 3.0 (72 DPI � 3), so a 150 DPI scan and a 400 DPI scan reach the recogniser in the same shape. This normalises the input; it cannot add detail a low-DPI scan never captured.
2. Upscale small pages. If a rendered page is under 1000 px on either edge, it is scaled up toward 2000 px � up to 3� � but only when the scale factor exceeds 1.2. This is what rescues a phone photo of a receipt, where the page is physically small in the frame.
3. Grayscale and auto-contrast. Colour is dropped using the luma weights (0.299 R + 0.587 G + 0.114 B), then the luminance range is stretched by clipping 1% from each end. If the whole page spans less than 30 grey levels � a flat, washed-out scan � the stretch is skipped rather than amplifying noise into a mess.
4. Angle detection and correction. The engine tests every angle from -15� to +15� in 0.5� steps, building a horizontal-projection histogram of the dark pixels at each angle and scoring it by how peaky it is (the sum of squared bin counts � a level page gives a sharp peak, a tilted one does not). The best angle wins, and the page is rotated only if the detected tilt is 0.5� or more. This is the "Auto-deskew pages" switch, and it runs in the deskew pipeline: grayscale, auto-contrast, rotate � and no thresholding.
5. Optional denoise, sharpen and threshold. Those three steps belong to the "Clean image before OCR" switch, and they are the only ones that turn the page black-and-white.
| Setting | Pipeline that actually runs | Binarises? | Use it for |
|---|---|---|---|
| Auto-deskew ON, Clean OFF (the default) | Grayscale ? auto-contrast ? angle detect and rotate | No | Almost everything. Straightens a tilted scan while leaving a clean scan's grey levels intact |
| Auto-deskew ON, Clean ON | Grayscale ? auto-contrast ? median filter (radius 2) ? sharpen (0.6) ? angle detect and rotate ? adaptive threshold (block 21, C 10) | Yes | Dirty, speckled, low-contrast fax or photocopy scans |
| Auto-deskew OFF, Clean ON | Grayscale ? auto-contrast ? median filter (radius 1) ? sharpen (0.3) ? adaptive threshold (block 15, C 8) | Yes | Speckled pages that are already straight |
| Both OFF | Raw rendered page | No | Very clean, perfectly straight digital exports � no cleanup is better than cleanup |
Thresholding is the step that turns a grey page into a black-and-white one, and it is where accuracy is most often lost. The engine was tested on clean scans with a forced adaptive threshold and measured a character error rate of 0.67%, against 0.00% for the same page left in grey. Binarising a clean scan destroys the subtle grey edges that the recogniser uses to tell one character from another � the tool lost accuracy it already had. That is why thresholding is confined to the "Clean" switch, and why the default path stops at grayscale and auto-contrast.
| What you can control before uploading | Why it matters more than any setting |
|---|---|
| Scan at 300 DPI | 200 DPI is the floor where small-font fields (tax rates, unit prices, tightly spaced line-item descriptions) start failing. 600 DPI only pays off for tiny type or dense tables |
| Use a flatbed or a firm phone surface | A curved page bends the text baseline, which defeats any single skew angle � no global rotation can fix a curve |
| Photograph straight on, in even light | Perspective distortion and a shadow across the page create local contrast gradients that auto-contrast cannot repair |
| Save as PNG, not JPEG, when you can | JPEG's 8�8 block compression leaves ringing around every glyph, which the recogniser reads as extra strokes |
| Turn off any "auto enhance" on the scanner | Scanner auto-enhance usually applies its own threshold, which is the exact operation that measured 0.67% CER. Feed the tool a grey page and let it decide |
Real Document Scenarios: Which Setting to Pick
The real-world problems that OCR solves for anyone working with scanned documents.
OCR accuracy is decided long before a word is recognised -- by four properties of the page image itself: resolution, angle, contrast and noise. Here is what each one does to your result, and which setting to use for six real document scenarios.
| Document | Real Problem | OCR Type | Clean Image | Deskew | Language | Why |
|---|---|---|---|---|---|---|
| Scanned GST invoice | Tight line-items, small tax rates, vendor GST number | Force OCR | OFF | ON | English | Force processes every page. Small-font fields fail below 200 DPI, so scan at 300 DPI. Deskew straightens the scan before recognition. |
| Phone photo of a receipt | Curved page, shadows, grey background, tilted | Force OCR | ON | ON | English + Hindi | Clean ON removes speckle noise and stretches contrast. Deskew fixes the phone angle. Dual-language model handles Hindi shop names mixed with English items. |
| Contract before e-signature | DocuSign or Adobe Sign needs a text layer to place signature fields | Force OCR | OFF | ON | English | Signing platforms read the embedded text layer, not the image. Clean OFF keeps grey edges intact so character shapes stay sharp. |
| Old fax / photocopy | Speckles, dust, low contrast, grey background | Force OCR | ON | ON | English | Clean ON runs median filter (radius 2) + sharpen (0.6) + adaptive threshold (block 21, C 10) to separate ink from paper. |
| Hindi government form | Devanagari script, conjunct characters | Force OCR | OFF | OFF | Hindi | English model on Devanagari returns gibberish. No amount of deskew or thresholding can fix a language mismatch. Hindi model is required. |
| Mixed contract + scanned annexure | Some pages already searchable, some are images | Skip Text and Meta | OFF | ON | English | Skip Text and Meta leaves already-searchable pages untouched and OCRs only the image pages. Faster and avoids double-processing. |
Language. An English model reading a Hindi form returns near-empty output -- no image cleanup, no deskew, no thresholding can fix it. Pick the language explicitly before you run anything else.
How Your Settings Change the Result
Every setting you choose changes what the engine outputs. Here is what each mode does to the recognition pipeline, measured on actual files.
When you run OCR, the tool follows a pipeline: it reads each page, defines the text blocks, lines, and words, then matches each word against its model of the alphabet and numbers. The result is a text layer embedded invisibly in your PDF — pixels on screen, searchable text underneath.
The four properties that decide whether this pipeline succeeds or fails are resolution, angle, contrast, and noise. Every improvement to OCR accuracy comes from getting one of these four right before the engine starts.
AFFLIGO uses Tesseract, an open-source OCR engine that supports 8 languages. The engine is compiled to WebAssembly and runs entirely in your browser — no server upload, no cloud processing, nothing leaves your machine.
| Setting | The pipeline it triggers | Measurable effect |
|---|---|---|
| Force OCR | Every page goes through the recognition engine. Text detection on images, then character classification at 216 DPI. | 100 x 1200 x 3 = 360,000 individual glyph classifications per page |
| Skip All Text | Pages that already have a text layer are detected first. Any page with text is left as-is, images are skipped. | 50% fewer classification calls on mixed pages |
| Skip Text and Meta | Same as Skip All Text, plus the engine checks for embedded metadata (title, author, subject) and skips pages that already contain it. | All three checks happen per page before the recognition stage begins |
| Deskew ON | The engine scans the page for text-line baselines and rotates by the detected angle before character classification. | 0.5° precision. Rotates only when the deviation exceeds 0.5° |
| Clean Image ON | Runs three passes: median filter (radius 2, removes speckle), sharpen (0.6, restores edge definition), adaptive threshold (block 21, contrast stretches). | Grey background Y=0 → G=0 → ink becomes binary (0 or 255) |
| What you can control before uploading | Why it matters more than any setting |
|---|---|
| Scan at 300 DPI | 200 DPI is the floor where small-font fields (tax rates, unit prices, tightly spaced line-item descriptions) start failing. 600 DPI only pays off for tiny type or dense tables |
| Use a flatbed or a firm phone surface | A curved page bends the text baseline, which defeats any single skew angle — no global rotation can fix a curve |
| Photograph straight on, in even light | Perspective distortion and a shadow across the page create local contrast gradients that auto-contrast cannot repair |
| Save as PNG, not JPEG, when you can | JPEG's 8×8 block compression leaves ringing around every glyph, which the recogniser reads as extra strokes |
| Turn off any "auto enhance" on the scanner | Scanner auto-enhance usually applies its own threshold, which is the exact operation that measured 0.67% CER. Feed the tool a grey page and let it decide |
AFFLIGO OCR PDF Tool: What It Actually Does
The tool does one thing well: adds an invisible searchable text layer to your PDF without touching the original pages. Here is the complete picture.
AFFLIGO's OCR PDF tool runs Tesseract (compiled to WebAssembly) entirely in your browser. The original pages are never re-rendered, never recompressed, and never uploaded. A 15KB scanned two-pager comes out at 15.7KB — the only growth is the text layer and cross-reference offsets.
| Capability | What it means for you |
|---|---|
| 8 language models | English, Hindi, French, German, Spanish, Portuguese, Arabic, Russian. The model downloads (1-4MB) on first run and caches for offline. |
| 4 OCR modes | Force OCR, Skip All Text, Skip Text and Meta, Skip OCR — each skips different things before the engine runs. |
| Auto-deskew | Detects -15° to +15° in 0.5° steps, rotates only at 0.5° or more. |
| Clean image | Median filter (radius 2), sharpen (0.6), adaptive threshold (block 21, C 10). Binarises only when ON. |
| 30MB file limit | Hard cap per file. Large files process page-by-page with memory freed between pages. |
| Chain Compress / Protect | After OCR, compress the searchable PDF or encrypt it without re-uploading. |
It Looks Right but Ctrl+F Finds Nothing
The visual page is unchanged after OCR. The text layer is what Ctrl+F reads - and it is invisible.
Open a scanned PDF in any viewer. It looks like text. But press Ctrl+F and type a word you see on screen - nothing is found. The viewer is rendering the image, not the text layer. OCR adds the invisible text layer that makes search work.
The five-second test after you download:
- Run OCR on your scanned PDF and download the result.
- Open the downloaded file in any PDF viewer (Chrome, Edge, Adobe).
- Press Ctrl+F and type a word you know is on page 2.
- If it highlights, the text layer landed. If nothing is found, OCR was skipped or the language was wrong.
A PDF that "looks searchable" but has no text layer will fail every search, every copy-paste, and every downstream tool that expects extractable text. The visual test is not the same as the functional test.
Handwriting Is Not OCR
Tesseract handles printed text. It does not read handwriting - and no amount of settings will change that.
This is the distinction competitors bury, and it is worth saying plainly:
| Input type | OCR works? | What actually works |
|---|---|---|
| Printed text, machine fonts | Yes | This tool |
| Handwritten Latin script | No | ICR (Intelligent Character Recognition) - different engine, cloud-only |
| Handwritten Devanagari | No | No reliable public engine exists for cursive Hindi |
| Signatures / annotations | No | These are graphics, not text - OCR skips them |
| Old typewriter output | Sometimes | Depends on ribbon quality and font regularity |
If your document is handwritten, OCR will return gibberish or near-empty output. The tool is not broken - the input type is outside its design. This honesty saves you a wasted run.
OCR Order of Operations: What Chain Works
OCR first, then anything else. The text layer must exist before you compress or protect.
| Order | Result | Safe? |
|---|---|---|
| OCR first, then Compress | Searchable + smaller file. Compression does not strip the text layer. | Yes |
| OCR first, then Protect | Searchable + encrypted. Password does not block the text layer. | Yes |
| Compress first, then OCR | Compression may damage the image quality OCR needs. Risk of worse recognition. | Risky |
| Protect first, then OCR | Password prompt blocks the OCR engine. The tool cannot open the file. | No |
Done the wrong way round, you either get a file that OCR cannot open (protected first) or one where compression ate the details OCR needed (compressed first). The safe order is always OCR first.
OCR Settings Explained
Four modes, one dropdown � here is what each OCR setting actually changes before you commit a long scan.
AFFLIGO provides 4 OCR configuration options. Here is what each one does and when to use it:
| Setting | Options | When to Use |
|---|---|---|
| OCR Type | Force OCR, Skip All Text, Skip Text and Meta, Skip OCR | Force OCR for scanned documents. Skip All Text for mixed documents with some searchable pages. Skip Text and Meta OCRs only text-less pages and strips document metadata. Skip OCR keeps the original untouched. |
| Auto-Deskew | On / Off | Enable for tilted or skewed scans. Disable for already-straight documents. |
| Clean Before OCR | On / Off | Enable for noisy scans with artifacts, speckles, or low contrast. |
The tool never re-renders or recompresses your pages -- it only adds an invisible searchable text layer. Output looks pixel-identical and barely grows in size.
OCR PDF to Word
Converting scanned PDFs to editable Word documents using OCR.
While AFFLIGO's OCR tool outputs a searchable PDF (not directly to Word), the OCR'd PDF can easily be converted to an editable Word document. Here is the workflow:
OCR the Scanned PDF
Drop your scanned PDF into AFFLIGO's OCR tool, select the language, and run OCR. Download the searchable PDF output.
Convert to Word
Use a PDF-to-Word converter (like AFFLIGO's PDF to Word tool) to convert the searchable PDF into an editable .docx file. The text layer from OCR makes this conversion accurate.
Without OCR, a PDF-to-Word converter would only extract the image, leaving you with a non-editable picture. The OCR text layer is what makes the Word conversion possible.
OCR PDF to Text
Extracting plain text from scanned PDFs for data processing and analysis.
After running OCR on a scanned PDF, you can extract the text content directly from the searchable PDF. The text layer contains all recognized characters positioned to match the original layout.
Make PDF Searchable with OCR
The primary benefit of OCR -- turning unsearchable images into searchable documents.
The most valuable outcome of OCR is making PDFs searchable. A searchable PDF lets you use Ctrl+F to find any word or phrase instantly, even in documents with hundreds of pages.
Before OCR: You scroll through image pages manually, reading every line to find a specific term. In a 200-page legal document, finding a single clause could take 30 minutes.
After OCR: Press Ctrl+F, type the keyword, and the PDF reader highlights every occurrence. The same search takes 2 seconds. This is transformative for legal research, academic study, medical record review, and any scenario where document search is essential.
Legal e-discovery, academic research, medical record search, invoice processing, contract analysis, archival retrieval, and regulatory compliance auditing.
While preparing this guide I ran a 15KB scanned two-pager through the tool: the output grew to 15.7KB with an invisible English text layer, and Ctrl+F found a buried invoice number on the first try. A Hindi test page needed the Hindi model selected first � the English model returned gibberish on Devanagari, exactly as the language section warns.
Supported Languages (8)
Pick your document language before running -- the right model is what makes accented characters come out right.
AFFLIGO ships 8 Tesseract language models. The one you pick (1-4MB) downloads on first use and stays cached, so repeat runs even work offline. Choosing the right language matters: an English model reading German text will miss every umlaut.
| Language | Script | Notes |
|---|---|---|
| English | Latin | Default. Best accuracy, fastest model |
| Hindi | Devanagari | Hindi, Marathi, Nepali, Sanskrit documents |
| French | Latin | Accents (�, �, �) recognized correctly |
| German | Latin | Umlauts (�, �, �, �) recognized correctly |
| Spanish | Latin | �, inverted marks handled |
| Portuguese | Latin | Accents (�, �, �) recognized correctly |
| Arabic | Arabic (RTL) | Right-to-left text supported |
| Russian | Cyrillic | Russian-language documents |
One language per run. For mixed-language documents, run the dominant language first -- most Latin-script text is still picked up by any Latin model.
Hindi Language OCR
Extracting text from Hindi scanned PDFs.
Hindi OCR is particularly valuable because many official documents, government forms, academic papers, and legal records are in Hindi. Pick Hindi in the language dropdown -- the Devanagari model handles Hindi, Marathi, Nepali, and Sanskrit documents.
Batch OCR: Process Multiple PDFs
Running OCR on multiple scanned PDFs in sequence.
AFFLIGO processes one PDF at a time, up to 30MB per file. For batch processing of multiple scanned PDFs, here is the efficient workflow:
Process Files Sequentially
Upload each scanned PDF individually, configure the same language and settings, and run OCR. Download each result before uploading the next file.
Merge After OCR
After OCR-ing all individual PDFs, use AFFLIGO's Merge PDF tool to combine them into a single searchable document.
For large volumes of scanned documents, process files one at a time � each runs locally in your browser, so closing other heavy tabs speeds things up.
Security and Privacy
How AFFLIGO handles your scanned documents during OCR processing.
Tesseract runs as WebAssembly inside your tab � the PDF is read from memory and the text layer is written back locally. Here is how privacy works:
No Upload Ever
Files are processed locally in your browser. Nothing is sent to any server � your documents stay 100% private.
No Storage
Nothing is stored, cached, or used for any other purpose. Close the tab and nothing remains anywhere but your device.
No Registration Required
You do not need to create an account or provide any personal information to use the OCR tool. No email, no signup, no tracking.
Transparent Processing
The tool shows real-time progress during recognition. You can watch each stage complete right in your browser.
Even though everything runs locally, if your document contains highly sensitive information (classified, privileged, or regulated data), always verify the output on your own device before sharing.
Troubleshooting Common OCR Problems
Solutions for the most frequent OCR issues and error scenarios.
OCR Is Slow on Huge Files
Recognition takes a while on very large scans. Solution: Try a smaller file, reduce page count, or split the PDF into sections before OCR-ing each part individually.
Garbled or Incorrect Text
OCR produced wrong characters. Solution: Work the defect list in order � angle first, then resolution, then contrast, then noise. Check that the correct language is selected (no image fixing can solve a language mismatch). Ensure the scan is at 300 DPI or higher. Enable auto-deskew for tilted pages. The Deskew, DPI and Threshold fix table maps every symptom to its cause and its fix.
File Too Large to Process
Your scanned PDF failed due to its size. Solution: Use AFFLIGO's Compress PDF tool to reduce file size before OCR, or split the PDF into smaller sections.
Recognition Failed
The browser could not complete recognition. Solution: Reload the page and try again. If the problem persists, try a different browser or reduce the file size.
Browser Runs Out of Memory
The tab froze or crashed on a huge file. Solution: Close other heavy tabs, or split the PDF into smaller sections. Keep files under 30MB.
Frequently Asked Questions
Answers to the most common questions about OCR PDF processing.
Want to explore more?
Key Takeaways
- OCR converts image-based PDFs into searchable, copyable documents by adding a text layer over scanned content
- When OCR is wrong, work the defects in order: angle first, then resolution, then contrast, then noise. A language mismatch is the only cause no image fix can solve
- A 2-3 degree tilt is why one field can read perfectly while its neighbour is garbage � the baseline drifts within the line
- Below 200 DPI, characters smear and 0/O and 1/l interchange. No preprocessing can invent detail the scan never captured
- AFFLIGO uses 100% private browser-based OCR with 8 languages including Hindi -- original pages stay untouched, only an invisible text layer is added
- Leave "Clean image before OCR" off for a clean scan: thresholding a clean page measured 0.67% character error rate against 0.00% in greyscale
- Force OCR mode is the correct choice for most scanned documents; use Skip All Text only for mixed documents
- Nothing is ever uploaded � all recognition happens locally in your browser, max 30MB per file
- After OCR, compress or password-protect the searchable PDF right from the result card � no re-upload needed
