Merge Multi-Page PDF Tables into One Continuous Excel Sheet
Stop copying and pasting 10+ fragmented worksheets. StructOCR detects continuation tables across page breaks, removes repeated headers, and exports one clean OpenXML .xlsx table.
200 free credits = 100 PDF page scans, no credit card. Then from $5 for 500 credits, pay as you go. See pricing

Why Standard PDF-to-Excel Converters Split Long Tables into Fragmented Sheets
When a 14-page bank statement, wholesale price list, or line-item schedule is converted with generic PDF-to-Excel tools or Excel's built-in Power Query importer, every PDF page becomes a separate disconnected table. Analysts are forced to manually copy-paste rows across 10–15 tabs, hunt down repeated column headers buried in the middle of the dataset, and fix shifted columns whenever one page is scanned or borderless.
Deterministic Cross-Page Table Stitching for Browser & API Workflows
Upload your multi-page PDF directly into our free PDF Table Extractor (or automate via POST /v1/pdf-extract with stitch_tables=true). StructOCR processes pages in order, verifies adjacent page continuity (prev.endPage + 1 === page), checks column-count equality and normalized header similarity, strips repeated continuation header rows, and appends all rows into a single table—ready for one-click .xlsx download or UTF-8 CSV export.
Where Multi-Page Table Merging Saves Hours
10–20 Page Bank & Card Statements
Merge hundreds of transaction rows spanning a month-end scanned statement into one continuous worksheet ready for SUMIFS and pivot tables.
Wholesale Catalogs & Supplier Price Lists
Combine multi-page SKU schedules into one clean spreadsheet without repeated header banners breaking Excel sort and filter controls.
Freight Manifests, Packing Lists & BOQs
Stitch multi-page shipment item schedules and bills of quantities while keeping summary tables with different columns on separate worksheets.
Audit Logs, Attendance & Payroll Registers
Turn exported or flatbed-scanned multi-page operational registers into one flat dataset for accounting or BI ingestion.
Technical Specs
- Adjacency Guard: Never merges across failed or skipped pages (requires `curr.page === prev.endPage + 1`)
- Column & Header Check: Requires matching column count plus normalized header similarity `>= 0.8` (or explicit continuation signal with matching columns)
- Header Deduplication: Strips repeated continuation header rows on pages 2–20 before appending rows
- Safe Multi-Table Separation: Unrelated sub-tables with different column structures stay as separate named worksheets in `.xlsx`
- Limits & Cost: Up to 10 MB / 20 pages per call; 2 credits per succeeded page (failed pages auto-refunded)
- Privacy: Strict Zero Data Retention (in-memory only; `raw_response: null`)
Key Features
- One-click `.xlsx` download in browser: No coding required—upload in `/tools/pdf-table-extractor`, review stitched tables, and export genuine OpenXML `.xlsx`.
- Optional toggle for raw per-page tables: Turn `stitch_tables=false` whenever you intentionally want every page kept as its own table.
- Works on scanned & borderless PDFs: Handles copier scans (150+ DPI) and borderless layouts where Excel Power Query returns zero tables.
- Free tier to verify on your own files: Test up to 2 pages per PDF without signing up, or create a free account for 200 permanent credits (100 PDF pages).
Stitch Multi-Page PDF Tables into One Excel Workbook via API
Pass mode=tables and stitch_tables=true (enabled by default) to POST https://api.structocr.com/v1/pdf-extract. Each stitched table returns page_range: [start, end] and stitched: true. Full contract in the PDF Extract API docs.
import os
import pandas as pd
import requests
with open("14_page_statement.pdf", "rb") as f:
res = requests.post(
"https://api.structocr.com/v1/pdf-extract",
headers={"x-api-key": os.environ["STRUCTOCR_API_KEY"]},
files={"file": ("14_page_statement.pdf", f, "application/pdf")},
data={
"mode": "tables",
"pages": "all",
"stitch_tables": "true",
},
timeout=120,
)
res.raise_for_status()
tables = res.json()["document"]["tables"]
with pd.ExcelWriter("merged_tables.xlsx", engine="openpyxl") as writer:
for idx, table in enumerate(tables, start=1):
df = pd.DataFrame(table["rows"], columns=table["headers"])
name = f"Table_{idx}_p{table['page_range'][0]}-{table['page_range'][1]}"[:31]
df.to_excel(writer, sheet_name=name, index=False)
print(f"{name}: {len(df)} rows, stitched={table['stitched']}")Example Stitched Multi-Page Output (Synthetic Specimen)
Synthetic response showing a 4-page table merged into `table_1` (`page_range: [1, 4]`, `stitched: true`) while a distinct summary table on page 4 stays separate as `table_2`.
{
"success": true,
"mode": "tables",
"document": {
"summary": {
"document_type": "multi_page_schedule",
"title": "Monthly Vendor Activity Register",
"language": "en"
},
"fields": {},
"tables": [
{
"id": "table_1",
"title": "Line Item Register",
"page_range": [
1,
4
],
"stitched": true,
"headers": [
"Posting Date",
"Reference",
"Department",
"Amount (USD)"
],
"rows": [
[
"2026-10-02",
"REF-4011",
"Operations",
"1,240.00"
],
[
"2026-10-14",
"REF-4098",
"Logistics",
"3,815.50"
],
[
"2026-10-29",
"REF-4172",
"Maintenance",
"920.00"
]
]
},
{
"id": "table_2",
"title": "Department Totals Summary",
"page_range": [
4,
4
],
"stitched": false,
"headers": [
"Department",
"Total (USD)"
],
"rows": [
[
"Operations",
"1,240.00"
],
[
"Logistics",
"3,815.50"
],
[
"Maintenance",
"920.00"
]
]
}
]
},
"custom_data": null,
"pages": [
{
"page": 1,
"status": "ok",
"tables_found": 1
},
{
"page": 2,
"status": "ok",
"tables_found": 1
},
{
"page": 3,
"status": "ok",
"tables_found": 1
},
{
"page": 4,
"status": "ok",
"tables_found": 2
}
],
"usage": {
"page_count": 4,
"pages_processed": 4,
"pages_succeeded": 4,
"credits_per_page": 2,
"credits_charged": 8
}
}Frequently Asked Questions
Will StructOCR accidentally merge two completely different tables in the same PDF?
No. Stitching only triggers when the first table on page N+1 has the exact same column count and compatible headers as the last table on page N. Distinct summary tables or secondary tables with different columns stay separate as their own worksheets.
Why did a 14-page PDF split into more than one stitched table?
If a long document introduces a new section with different columns, a sub-header banner that starts a new table schema, or a separate summary table on the final page, StructOCR preserves that boundary rather than forcing mismatched columns together.
How many PDF pages can I merge in one run?
In the free guest preview, up to 2 pages per PDF are processed. Signed-in accounts (starting with 200 permanent free credits = 100 pages) and API callers can process up to 20 pages per request (up to 10 MB per PDF).
Can I turn off table stitching if I want one sheet per page?
Yes. Uncheck table stitching in the PDF Table Extractor workbench or pass stitch_tables=false to POST /v1/pdf-extract.
Explore More PDF Data & Table Extraction Solutions
PDF Data Extraction & Table OCR API
Convert scanned and digital PDFs up to 10 MB into stitched multi-page CSV/Excel schedules and strict custom JSON schemas with zero data retention.
PDF Form Data Extraction & Custom JSON Schema API
Extract structured fields from flattened PDF forms, scanned applications, lab reports, and COAs using your own custom JSON Schema via POST /v1/pdf-extract.
Purchase Order & Supplier Price List PDF to JSON & CSV API
Automate Purchase Order (PO) OCR and multi-page supplier price list or catalog PDF extraction into ERP-ready JSON and UTF-8 CSV without vendor templates.
Convert Bank Statement PDF to CSV & Excel – Zero-Retention OCR
Convert scanned and digital bank statement or credit card statement PDFs into clean CSV and Excel (.xlsx) transaction tables. Auto-stitches multi-page statements with strict zero data retention.
Convert PDF to Google Sheets – Copy PDF Tables Cleanly
Convert scanned or digital PDF tables to Google Sheets without broken columns. One-click clipboard TSV paste, clean UTF-8 CSV import, or automated n8n / Apps Script webhook sync.
Extract Data from Scanned PDF to Excel (.xlsx) – Vision Table OCR
Extract tables and structured data from scanned image-only PDFs into native Excel (.xlsx) and CSV. Works on borderless tables, skewed scans, and multi-page schedules where Excel Power Query fails.
Financial Statement PDF to Excel & JSON – Balance Sheet & P&L OCR
Extract income statements, balance sheets, cash flow schedules, and rent rolls from digital or scanned financial report PDFs into clean Excel (.xlsx), CSV, and JSON.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
Add HIN OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR HIN (Hull Identification Number) scanner API into a Bolt.new app. Build marine and boat management tools right in your browser.
Invoice OCR API Integration for Bolt.new
Learn how to integrate our Invoice OCR API into a Bolt.new app in under 5 minutes. Extract structured JSON effortlessly. Try our free live test now.
Add National ID OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR National ID scanner API into a Bolt.new app. Build KYC and identity verification flows right in your browser.
Add Passport OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR Passport scanner API into a Bolt.new app. Build travel, hospitality, and global KYC flows right in your browser.
Add Receipt OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR receipt API into a Bolt.new app. Build expense tracking and receipt scanning tools right in your browser.
Add VIN OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR VIN scanner API into a Bolt.new app. Build automotive and fleet tools right in your browser.
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.