Prompt
How to OCR scanned PDF with tables and forms
Latest observation
Oct 11, 2026
OpenAI APIWeb search: off
To OCR a scanned PDF with tables and forms, you usually want a workflow that does two things:
- Recognize the text (OCR)
- Preserve structure like tables, checkboxes, form fields, and layout
Best options
1) Adobe Acrobat Pro
Good for:
- simple OCR
- searchable PDFs
- preserving original page images
How:
- Open PDF
- Go to Scan & OCR
- Choose Recognize Text
- Save as searchable PDF
Limitations:
- Not always great at complex tables/forms
2) ABBYY FineReader
Best for:
- high-accuracy OCR
- tables
- forms
- layout preservation
How:
- Open PDF in ABBYY
- Run OCR
- Export as:
- searchable PDF
- Word
- Excel
- CSV
This is one of the best commercial tools for scanned tables/forms.
3) Tesseract OCR + PDF tools
Good for:
- free/open-source workflows
- automation
But:
- Tesseract alone is mostly for text OCR
- table/form structure extraction is limited without extra processing
Common approach:
- Convert PDF pages to images
- Run OCR
- Use layout/table detection tools separately
Useful tools:
pytesseractocrmypdfpdfplumbercamelot/tabula(for digital tables, not scanned)layoutparser/opencvfor structure detection
Easiest free method: OCRmyPDF
If you just want the PDF to become searchable while keeping layout:
ocrmypdf scanned.pdf output.pdf
For better quality:
ocrmypdf --rotate-pages --deskew --clean scanned.pdf output.pdf
If the PDF already has some text:
ocrmypdf --force-ocr scanned.pdf output.pdf
What it does well
- makes scanned PDFs searchable
- keeps original appearance
- good for archiving
What it doesn’t do well
- doesn’t fully extract tables into structured data
- won’t understand form fields automatically
If you need table extraction
For scanned tables, OCR alone is not enough. You need OCR + table detection.
Workflow:
- Convert pages to images
- Detect table regions
- OCR inside table cells
- Reconstruct rows/columns
Tools:
- ABBYY FineReader: easiest if you want accuracy
- Azure Form Recognizer / Document Intelligence
- Google Document AI
- AWS Textract
- Open-source:
layoutparseropencvpaddleocrcamelotonly for non-scanned PDFs usually
Best cloud services for tables/forms
- AWS Textract
- Google Document AI
- Azure Document Intelligence
These are especially good for:
- invoices
- tax forms
- application forms
- table extraction
- key-value pairs
If you need to extract form fields
For forms, use tools that detect:
- key-value pairs
- checkboxes
- signatures
- line items
Best options:
- AWS Textract AnalyzeDocument
- Azure Document Intelligence
- Google Document AI
- ABBYY FineReader
Recommended approach by use case
Just searchable PDF
Use:
ocrmypdf input.pdf output.pdf
Need accurate OCR for tables/forms
Use:
- ABBYY FineReader
- or a cloud form-processing API
Need automation at scale
Use:
- AWS Textract
- Azure Document Intelligence
- Google Document AI
Need open-source pipeline
Use:
- OCRmyPDF for OCR
- PaddleOCR / Tesseract for text
- OpenCV + layout detection for tables/forms
Tips to improve OCR accuracy
- Use high-resolution scans, ideally 300 DPI or more
- Deskew crooked pages
- Remove noise/background shadows
- Ensure good contrast
- Split duplex scans if pages bleed through
- Use language-specific OCR models if needed
Example Python approach with OCRmyPDF
import subprocess
input_pdf = "scanned.pdf"
output_pdf = "ocr_output.pdf"
subprocess.run([
"ocrmypdf",
"--deskew",
"--rotate-pages",
"--clean",
input_pdf,
output_pdf
], check=True)
If you want, I can also give you:
- a free Python pipeline for OCR + table extraction, or
- the best cloud API for scanned forms/tables depending on your budget.