Split PDFs into RAG chunks with page numbers
Convert PDFs to Markdown and split them into ready-to-embed chunks for RAG. Each chunk keeps its page range and nearest heading for citations, and tables are never cut in half. $2 per 1,000 pages, chunking included.
Input
Output fields
Sign up on Apify or log in
The Document to Markdown — PDF, Word, PowerPoint, Excel, OCR Actor is ready to run with the inputs already set for "Split PDFs into RAG chunks with page numbers". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Split PDFs into RAG chunks with page numbers" task
The Document to Markdown — PDF, Word, PowerPoint, Excel, OCR Actor will start running based on the input automatically. You can also change all the input fields, like file urls, RAG chunk size (characters), and more, to match your specific use case.
Receive the "Split PDFs into RAG chunks with page numbers" 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 URL, file, type, 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 "Split PDFs into RAG chunks with page numbers" task via API.

Integrate "Split PDFs into RAG chunks with page numbers" into your workflow
Connect "Split PDFs into RAG chunks with page numbers" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay