Go to example tasks

Get the table of contents of a PDF

The bookmark outline the document carries, with each heading, its level and the page it points to. It is the cheapest way to see how a long report is organised, and to decide which page range is worth extracting in full.

Try for free
PDF to JSON Extractor — Tables, Fields & Structure
PDF to JSON Extractor — Tables, Fields & Structurepower_on/pdf-to-json-extractor
PDF
Pages
Outline (heading, level, page)
Pages charged
Text
Number
Boolean
List
Object

Input

PDF files(required):https://www.irs.gov/pub/irs-pdf/p15.pdf+1
Max pages per document:1
Output formats:json

Output fields

PDF
Pages
Outline (heading, level, page)
Pages charged

How it works

Sign up on Apify or log in

The PDF to JSON Extractor — Tables, Fields & Structure Actor is ready to run with the inputs already set for "Get the table of contents of a PDF". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Get the table of contents of a PDF" task

The PDF to JSON Extractor — Tables, Fields & Structure Actor will start running based on the input automatically. You can also change all the input fields, like PDF files, max pages per document, and more, to match your specific use case.

Receive the "Get the table of contents of a PDF" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as PDF, pages, outline (heading, level, page), and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Get the table of contents of a PDF" task via API.

Image

Integrate "Get the table of contents of a PDF" into your workflow

Connect "Get the table of contents of a PDF" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay