Camelot PDF Alternative: Borderless & Scanned Table Extraction Without Ghostscript
Eliminate Ghostscript/OpenCV container bloat and brittle lattice vs. stream tuning with one vision-powered PDF table extraction API.
Why camelot-py Pipelines Stall on Real-World Business PDFs
Camelot (camelot-py) works well on born-digital PDFs with clean ruling lines, yet engineering teams routinely run into three production bottlenecks. First, Camelot's lattice flavor requires visible line segments—when suppliers export borderless tables or shaded zebra rows, lattice detects nothing and stream mode misaligns multi-line descriptions. Second, Camelot only parses text-based PDFs and cannot extract tables from scanned image PDFs. Third, packaging Ghostscript, Tkinter, or OpenCV system libraries inside serverless functions or slim Alpine containers introduces fragile OS-level build failures.
One Vision Table Engine for Borderless, Gridded, and Scanned PDFs
With StructOCR POST /v1/pdf-extract, you send the raw PDF file over HTTPS (up to 10 MB, 20 pages per call) without choosing between flavor='lattice' and flavor='stream'. StructOCR reads both visual borders and whitespace column alignment on digital and scanned pages, automatically merges continuation tables across page breaks (stitch_tables=true), and returns clean headers[] and rows[][] ready for CSV or Excel. Try your hardest borderless PDF right now in our free online PDF table extractor.
Where StructOCR Replaces Camelot
- Borderless Financial Statements & Rent Rolls: Read whitespace-aligned columns and negative parenthesized figures without hand-tuning column separator coordinates.
- Mixed Digital & Scanned Vendor Archives: Process digital ERP exports and 200-DPI flatbed scans through the exact same API call—no separate OCR fallback branch.
- Multi-Page Continuation Tables: Automatically stitch rows across page breaks and strip repeated headers instead of writing fragile pandas concat scripts.
- Lightweight Docker & Serverless Builds: Drop Ghostscript, Poppler, and OpenCV dependencies from your Dockerfile and keep deployments fast and portable.
Replacing camelot.read_pdf() in Python, Node.js, or cURL
Upload a PDF to POST https://api.structocr.com/v1/pdf-extract with mode=tables and load each returned table directly into pandas or an OpenXML spreadsheet. Full endpoint reference is in our PDF Extract API documentation.
Prerequisite: Python 3.9+ (`pip install requests pandas`; no Ghostscript/OpenCV required)
import os
import pandas as pd
import requests
# Replaces: tables = camelot.read_pdf("borderless_report.pdf", pages="1-10", flavor="stream")
with open("borderless_report.pdf", "rb") as pdf_file:
response = requests.post(
"https://api.structocr.com/v1/pdf-extract",
headers={"x-api-key": os.environ["STRUCTOCR_API_KEY"]},
files={"file": ("borderless_report.pdf", pdf_file, "application/pdf")},
data={
"mode": "tables",
"pages": "1-10",
"stitch_tables": "true",
},
timeout=90,
)
response.raise_for_status()
tables = response.json()["document"]["tables"]
with pd.ExcelWriter("stitched_report.xlsx", engine="openpyxl") as writer:
for idx, table in enumerate(tables, start=1):
df = pd.DataFrame(table["rows"], columns=table["headers"])
sheet_name = (table.get("title") or f"Table_{idx}")[:31]
df.to_excel(writer, sheet_name=sheet_name, index=False)
print(f"Saved sheet {sheet_name}: {len(df)} rows (pages {table['page_range']}, stitched={table['stitched']})")Technical Specs
- •System Dependencies: Camelot needs Ghostscript/PDFium/OpenCV for lattice rendering; StructOCR requires only an HTTP client
- •Borderless Tables: Visual layout parsing works without explicit gridlines or manual `table_areas` / `columns` coordinates
- •Scanned PDFs: Supports scanned image-only PDFs, JPG, PNG, and WebP up to 10 MB
- •Multi-Page Tables: `stitch_tables=true` combines continuation pages and preserves distinct tables separately
- •Data Retention: Strict Zero Data Retention (in-memory only; `raw_response: null`)
- •Cost: 2 credits per succeeded page (failed pages automatically refunded)
Key Features
- •No coordinate tuning per vendor: One endpoint adapts across hundreds of supplier and bank table layouts.
- •Preserves multi-line cell text: Keeps wrapped line descriptions inside a single cell instead of creating orphan rows.
- •Deterministic page-range metadata: Every returned table reports `page_range: [start, end]` and `stitched: true|false` for auditability.
- •Browser workbench included: Non-technical analysts can drag-and-drop PDFs into `/tools/pdf-table-extractor` for instant `.xlsx` and CSV downloads.
Example Borderless Table Output (Synthetic Specimen)
Synthetic response from `POST /v1/pdf-extract` showing a borderless multi-page ledger table stitched cleanly across pages 1–2.
{
"success": true,
"mode": "tables",
"document": {
"summary": {
"document_type": "financial_ledger",
"title": "Department Operating Expense Schedule",
"language": "en"
},
"fields": {},
"tables": [
{
"id": "table_1",
"title": "Operating Expenses by Cost Center",
"page_range": [
1,
2
],
"stitched": true,
"headers": [
"Cost Center",
"Account",
"Q3 Actual",
"Q3 Budget",
"Variance"
],
"rows": [
[
"CC-100",
"Cloud Infrastructure",
"42,180.00",
"45,000.00",
"-2,820.00"
],
[
"CC-120",
"Logistics & Freight",
"19,640.50",
"18,500.00",
"1,140.50"
],
[
"CC-140",
"Software Licenses",
"11,290.00",
"11,500.00",
"-210.00"
]
]
}
]
},
"custom_data": null,
"pages": [
{
"page": 1,
"status": "ok",
"tables_found": 1
},
{
"page": 2,
"status": "ok",
"tables_found": 1
}
],
"usage": {
"page_count": 2,
"pages_processed": 2,
"pages_succeeded": 2,
"credits_per_page": 2,
"credits_charged": 4
}
}Frequently Asked Questions
Why does Camelot lattice mode fail on borderless PDF tables?
Camelot's lattice flavor detects tables by finding intersecting horizontal and vertical line segments drawn in the PDF. When a table relies on whitespace or alternating row shading instead of drawn borders, lattice returns zero tables. StructOCR infers rows and columns visually even without gridlines.
Can StructOCR process specific page ranges like Camelot's pages parameter?
Yes. Pass pages=all or specific ranges and lists such as pages=1-5 or pages=1,3,5-8 (up to 20 selected pages per request).
How do I export the extracted tables to CSV instead of Excel?
Each table object provides aligned headers[] and rows[][] arrays that serialize directly with Python's csv.writer, or you can export UTF-8 CSV files immediately in the browser with our PDF to CSV tool.
Are uploaded PDFs stored or used for model training?
No. POST /v1/pdf-extract enforces strict zero data retention: files are processed strictly in memory and usage logs record raw_response: null.
You May Also Like
Related tutorials, platform guides, and comparisons
Convert PDF to JSON in C# & .NET – Custom Schema OCR API
Extract structured JSON and custom JSON schemas from scanned or digital PDFs in C# and ASP.NET Core using MultipartFormDataContent and POST /v1/pdf-extract.
Extract Table from PDF to CSV in Python – Scanned & Multi-Page OCR
Extract tables from scanned or borderless PDFs into clean UTF-8 CSV files in Python. Replace brittle Tabula/pdfplumber coordinates with POST /v1/pdf-extract auto-stitched tables.
Extract Table from PDF to CSV in Node.js – Scanned PDF Table API
Convert scanned and multi-page PDF tables into RFC-4180 UTF-8 CSV files in Node.js 18+ and TypeScript via POST /v1/pdf-extract without native binary dependencies.
pdfplumber Scanned PDF Alternative – Vision OCR to JSON & CSV
When pdfplumber.extract_tables() returns empty results on scanned PDFs or breaks on borderless layouts, switch to POST /v1/pdf-extract for stitched tables and custom JSON Schema extraction.
Extract Table from PDF to CSV in C# & .NET – Scanned PDF OCR API
Convert scanned and borderless PDF tables into RFC-4180 UTF-8 CSV files in C# / .NET 8+ using POST /v1/pdf-extract with automatic multi-page table stitching.
Go Weighbridge Ticket OCR API Tutorial
Build a Go weighbridge ticket OCR client. Send Base64 images and parse vehicle, material, gross, tare, net, and weight validation results.
Go National ID OCR API
Upload an image for a free test! High-accuracy National ID data extraction for Go developers. Get structured JSON output via a simple API call, replacing unreliable open-source tools.
Java National ID Parser API
Upload an image for a free test! Eliminate manual data entry for national IDs. Our Java ID card parsing API provides AES-256 encrypted JSON output in <4s average latency, ensuring SOC2 compliant verification.
Go Receipt OCR API
Upload an image for a free test! Tutorial: Build scalable expense reporting apps in Go. Learn how to extract merchants, line items, and totals from POS receipts using our Golang OCR integration.
Canada Provincial ID Card PDF417 Barcode API
Decode AAMVA PDF417 barcodes on Canadian provincial ID cards and licenses into JSON with ISO dates, postal codes, and an explicit document_kind.
Tabula Alternative for Scanned & Multi-Page PDF Tables
Replace Tabula and tabula-py without Java/JVM dependencies. Extract scanned, borderless, and multi-page PDF tables into stitched CSV, Excel, and JSON via POST /v1/pdf-extract.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
Saudi National ID & Iqama OCR in n8n: KYC to JSON
Read Saudi National IDs and Iqamas in n8n with one HTTP Request node: 10-digit ID number, name, nationality, dates and MRZ as JSON. Includes a ready-made workflow to import.
OpenALPR vs. StructOCR API for VIN Decoding
Why traditional License Plate Recognition (ALPR) engines are not suitable for scanning Vehicle Identification Numbers (VINs).
Add Container OCR to Your Replit App in 5 Minutes
Step-by-step guide to integrating the StructOCR shipping container API into a Replit application. Build logistics and yard management tools using Replit Agent and Secrets.
Add Driver's License OCR to Your Replit App in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API into a Replit application. Build car rental and mobility onboarding flows using Replit Agent and Secrets.
Add HIN OCR to Your Replit App in 5 Minutes
Step-by-step guide to integrating the StructOCR HIN (Hull Identification Number) scanner API into a Replit application. Build marine and boat management tools using Replit Agent and Secrets.
Add Invoice OCR to Your Replit App in 5 Minutes
Step-by-step guide to integrating the StructOCR invoice API into a Replit application. Build accounts payable and expense tracking tools using Replit Agent and Secrets.
From tutorial to production in 5 minutes.
You've seen the code. Now get your API key, grab your 200 free credits, and see it work with your own images. No credit card required.