Go to example tasks

EU Law PDF to Markdown with Page Markers (EUR-Lex)

Converts an EU directive PDF from EUR-Lex into clean Markdown with page markers and repeated headers and footers removed, so every passage can be cited back to its page.

Try for free
Document to Markdown for LLM & RAG (PDF, DOCX, PPTX, XLSX, OCR)
Document to Markdown for LLM & RAG (PDF, DOCX, PPTX, XLSX, OCR)tidewell/doc-to-markdown
File
Title
Markdown
Full .md
Text
Number
Boolean
List
Object

Input

File URLs:https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:32023L2673
Insert page markers:true
Remove running headers, footers and page numbers:true

Output fields

File
Title
Markdown
Full .md

How it works

Sign up on Apify or log in

The Document to Markdown for LLM & RAG (PDF, DOCX, PPTX, XLSX, OCR) Actor is ready to run with the inputs already set for "EU Law PDF to Markdown with Page Markers (EUR-Lex)". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "EU Law PDF to Markdown with Page Markers (EUR-Lex)" task

The Document to Markdown for LLM & RAG (PDF, DOCX, PPTX, XLSX, OCR) Actor will start running based on the input automatically. You can also change all the input fields, like file urls, insert page markers, and more, to match your specific use case.

Receive the "EU Law PDF to Markdown with Page Markers (EUR-Lex)" 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, title, markdown, 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 "EU Law PDF to Markdown with Page Markers (EUR-Lex)" task via API.

Image

Integrate "EU Law PDF to Markdown with Page Markers (EUR-Lex)" into your workflow

Connect "EU Law PDF to Markdown with Page Markers (EUR-Lex)" 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

Frequently asked questions

$0.002 per converted document plus $0.0003 per page with text. OCR pages cost $0.0027 more. Failed, empty or unsupported files are free.

Short comments inserted at each page break, so text in the Markdown can be traced back to the PDF page it came from. Useful for citations.

Lines that repeat at the top or bottom of most pages, such as running titles and page numbers, are detected and dropped.

Yes. Paste direct file links, Google Drive, Dropbox or GitHub share links, or upload files in the input. You can also point it at a dataset of URLs from another actor.

Yes. The markdown field is ready to pass to a model. Set chunking to heading or tokens to also get chunks with token counts and page numbers for embedding.