Scanned PDF → Excel · Powered by Docling OCR
Scanned PDF to Excel: High-Precision Table Extraction with Docling OCR
A scanned page is a photograph of a table with zero underlying text coordinates. Ordinary tools fail because character recognition alone cannot align columns. Docling OCR solves this by combining deep visual OCR with IBM's TableFormer model, recovering exact cell grids, borderless financial tables, and multi-line rows into native Excel spreadsheets.
Inspect a PDF or the recorded sample
The browser viewer reads selectable PDF text. The NASA example also includes recorded Docling files.
Why scanned documents defeat ordinary converters (and how Docling OCR fixes them)
Empty output, no error
Standard text extraction returns zero characters on an image-only page. Docling OCR detects the lack of a text layer and automatically triggers its vision OCR pipeline to read the rasterized pixels.
OCR reads words, not columns
Basic OCR outputs an unstructured stream of tokens where numbers merge together. Docling OCR pairs optical character recognition with TableFormer to infer cell boundaries and header spans.
Skew, shadows, and fold lines
Pages scanned at an angle turn straight table columns into staircases. Docling OCR normalizes page orientation and segments layout visually before tokenizing text.
Stamps, watermarks, and noise
Audit stamps and signatures overlap numerical balances. Docling OCR isolates background artifacts to preserve currency amounts.
Multi-column reading confusion
Traditional OCR traverses horizontally, mixing left and right columns. Docling OCR preserves the true reading order using the DocLayNet visual model.
Mixed digital and scanned pages
Multi-page financial filings often combine digital pages with scanned audit attachments. Docling OCR processes each page adaptively, using vector extraction where available and deep OCR where necessary.
Why Docling OCR was engineered specifically for scanned documents
Born-digital PDFs already carry character codes and positioning matrices. The true bottleneck in document automation has always been scanned PDFs—contracts, paper bank statements, faxes, and historical archives that exist solely as flat bitmaps.
Docling OCR tackles scanned documents as a three-stage visual reasoning challenge: first, detecting layout regions (DocLayNet); second, running dedicated character recognition (RapidOCR/Tesseract); third, reconstructing 2D table topology (TableFormer). Without this three-stage approach, "OCR to Excel" tools produce nothing more than a single column of scrambled numbers.
Best practices for scanning documents before running Docling OCR
- Scan at 300 DPI grayscale whenever possible — grayscale preserves fine decimal points and commas without color JPEG compression blur.
- If capturing with a smartphone, shoot directly overhead under even lighting to prevent shadows across table folds.
- Crop out desk borders and scanner bed edges; black margins can confuse layout bounding-box predictors.
- Ensure the document is right-side up; while Docling OCR can handle slight skew, 90-degree rotations should be corrected prior to conversion.
- Keep the original scanned file to verify suspicious figures against the ground-truth image after export.
Verification checklist for converted scanned spreadsheets
1. Column alignment & count
Check that the number of columns in the generated .xlsx matches the scanned original. A missing column indicates two narrow figures were merged.
2. Multi-page table headers
On multi-page scans, verify that repeating header rows at page breaks were properly unified into the continuous data table.
3. Visually similar characters (0 vs 8, 1 vs 7)
Low-resolution scans can cause slight character ambiguity. Spot-check decimal points and currency indicators.
4. Debit vs. Credit balance signs
Ensure negative values (parentheses or trailing minus signs) were correctly mapped to numeric values in Excel.
Run Docling OCR locally, or look at a recorded run
You can execute Docling OCR on your own infrastructure via Python (<code>pip install docling</code>) with full GPU acceleration, or you can open the recorded run at <a href="/online" class="text-accent underline font-semibold">/online</a> and see the Markdown and the Excel table one document produced — without configuring CUDA, C++ compilers, or Python virtual environments.
Visit the <a href="/guide/docling-ocr-scanned-pdf" class="text-accent underline font-semibold">Docling OCR Scanned PDF Guide</a> for comprehensive Python scripts and architectural details.
Frequently asked questions
Is Docling OCR free for scanned PDF to Excel conversion?+
Yes. Docling OCR is 100% open-source software under the permissive MIT license from IBM Research. You can run it locally at no cost, or look at the recorded run at doclingocr.com to see what one parse of a scanned document returns.
Why is Docling OCR better than traditional OCR for scanned tables?+
Traditional OCR (like basic Tesseract) only outputs flat text coordinates. Docling OCR adds the TableFormer deep learning model, which understands cell spans, column hierarchies, and borderless tables from raw scanned pixels.
Can Docling OCR handle phone photos of receipts and paper invoices?+
Yes. Docling OCR handles camera photos well as long as the page is flat and readable. For best results, use good lighting and ensure table columns do not curve around page creases.
How do I run Docling OCR for scanned files without installing Python?+
You can convert your documents directly in your browser using the Docling OCR Online Playground at doclingocr.com/online with zero installation.