Go to example tasks

Convert a PDF to Markdown chunks for RAG

Converts a PDF into clean Markdown and splits it into chunks of about 800 tokens with page numbers and headings. Load the chunks straight into a vector database such as Pinecone, Qdrant or pgvector.

Try for free
PDF to Markdown & Text Extractor with OCR
PDF to Markdown & Text Extractor with OCRrod_analytics/doc-to-markdown
File
Source
Chunk
Page
+3 fields
Text
Number
Boolean
List
Object

Input

File URLs:https://www.govinfo.gov/content/pkg/USCODE-2011-title17/pdf/USCODE-2011-title17-chap1-sec107.pdf
Chunk size (tokens):800
Chunk overlap (tokens):80

Output fields

File
Source
Chunk
Page
Section
Tokens
Text

How it works

Sign up on Apify or log in

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

Start the "Convert a PDF to Markdown chunks for RAG" task

The PDF to Markdown & Text Extractor with OCR Actor will start running based on the input automatically. You can also change all the input fields, like file urls, chunk size (tokens), and more, to match your specific use case.

Receive the "Convert a PDF to Markdown chunks for RAG" 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, source, chunk, 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 "Convert a PDF to Markdown chunks for RAG" task via API.

Image

Integrate "Convert a PDF to Markdown chunks for RAG" into your workflow

Connect "Convert a PDF to Markdown chunks for RAG" 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