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 Apify01

Create your Apify account to access the PDF to Markdown & Document to Text for LLM/RAG, with OCR.

Start the run02

The Actor will start running based on the input automatically.

Receive the output03

Monitor the progress in real-time. You will be notified as soon as your dataset is complete and ready for review.

Integrate into your workflow04

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow.

Image

Integrate Actor directly into your workflow

Choose from one of 100+ integration options we provide or integrate via API

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