Skip to main content

Extract Table from PDF

ExtractExtract Table from PDF

The Extract Table from PDF API extracts table structures and data from a PDF. You send the PDF as Base64 (docContent), docName, and optionally async. The API returns JSON with rows, columns, and cell values. Use the tester below to try it; more details are in the sections that follow.

Try the Extract Table from PDF API

Quick reference

Endpoint: POST /api/v2/ExtractTableFromPdf · Required: api-key, docContent, docName

Try it live

Use the form below to send your API key and PDF (Base64) that contains tables. The response is JSON with extracted table data (rows, columns, cell values). No code required—fill the fields and click Send request.

Loading API Tester...

Overview, parameters, and use cases

What is Extract Table from PDF?

This endpoint extracts table structures and data from a PDF. You provide the PDF (Base64) and optionally enable async; the API returns JSON with rows, columns, and cell values. Use it when you need tabular data from PDFs (invoices, reports, data sheets) for spreadsheets, databases, or analysis.

Key features

  • Table detection – Detects table layout and extracts rows, columns, and cell values.
  • JSON response – Structured table data ready for Excel, CSV, or databases.
  • Async – Use async for PDFs with many or complex tables.
Best for

Use when you need tabular data from PDFs (invoices, reports, data sheets). Combine with Convert PDF to Excel if you need full conversion; use Extract Table for structured extraction only.

Prerequisites

Before using this endpoint, make sure you have:

  • A valid PDF4me API key (Get your API Key)
  • A PDF document in Base64 format or a public URL to a PDF file
  • The PDF document should contain tables

Response Format

The API returns a JSON response with extracted table data including rows, columns, and cell values.

Get Help