Go to example tasks

PDF to text chunks for RAG and LLMs

Splits PDFs into overlapping text chunks that are ready for embeddings, vector databases and LLM prompts. Each chunk keeps its page numbers, and tables are kept as Markdown tables. Text PDFs are read directly from the text layer, scanned pages go through OCR. The example is a public US government form.

Try for free
PDF to Text & Markdown with OCR for Scans (19 Languages)
PDF to Text & Markdown with OCR for Scans (19 Languages)prime619/pdf-to-text-markdown-ocr
File
Status
Pages
Text pages
+5 fields
Text
Number
Boolean
List
Object

Input

PDF files(required)
url:https://www.irs.gov/pub/irs-pdf/fw9.pdf
Split into chunks for RAG:true
Chunk size (characters):1500
Chunk overlap (characters):150

Output fields

File
Status
Pages
Text pages
OCR pages
Language
OCR confidence
Markdown file
Error

How it works

Sign up on Apify or log in

The PDF to Text & Markdown with OCR for Scans (19 Languages) Actor is ready to run with the inputs already set for "PDF to text chunks for RAG and LLMs". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "PDF to text chunks for RAG and LLMs" task

The PDF to Text & Markdown with OCR for Scans (19 Languages) Actor will start running based on the input automatically. You can also change all the input fields, like PDF files, split into chunks for rag, and more, to match your specific use case.

Receive the "PDF to text chunks for RAG and LLMs" 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 file, status, pages, 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 "PDF to text chunks for RAG and LLMs" task via API.

Image

Integrate "PDF to text chunks for RAG and LLMs" into your workflow

Connect "PDF to text chunks for RAG and LLMs" 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