Go to example tasks

Convert PDFs to Markdown for RAG

Turns PDF links into clean Markdown and splits each document into chunks under its headings, with the heading path and page numbers on every chunk. Tables stay as Markdown tables and scanned pages are read with OCR. Feed the rows to a vector database or an LLM. Also reads Word, PowerPoint, Excel, HTML and EPUB.

Try for free
PDF to Markdown & Document to Text for LLM/RAG, with OCR
PDF to Markdown & Document to Text for LLM/RAG, with OCRtinlark/document-to-markdown
File
Type
Title
Pages
+9 fields
Text
Number
Boolean
List
Object

Input

Document links:https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.04162018.pdf
Output format:markdown
Chunking for RAG:by-headings
Max pages per document:5

Output fields

File
Type
Title
Pages
OCR pages
Words
Language
Tables
Chunk
Heading path
Warnings
Source
Status

How it works

Sign up on Apify or log in

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

Start the "Convert PDFs to Markdown for RAG" task

The PDF to Markdown & Document to Text for LLM/RAG, with OCR Actor will start running based on the input automatically. You can also change all the input fields, like document links, output format, and more, to match your specific use case.

Receive the "Convert PDFs to Markdown 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, type, title, 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 PDFs to Markdown for RAG" task via API.

Image

Integrate "Convert PDFs to Markdown for RAG" into your workflow

Connect "Convert PDFs to Markdown 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