PDF to Markdown & Text Extractor
Pricing
from $3.00 / 1,000 page extracteds
PDF to Markdown & Text Extractor
Convert PDF files to clean Markdown or plain text for LLMs, RAG and search. Rebuilds headings, paragraphs and lists, removes running headers and footers, and handles Japanese, Chinese and Korean. One row per document or per page. Pay only for pages that contain text.
Pricing
from $3.00 / 1,000 page extracteds
Rating
0.0
(0)
Developer
竣祐 平木
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Features
Share
Turn PDF files into clean Markdown or plain text that language models, RAG pipelines and search indexes can use directly. Give the Actor links to PDF files and get the content back with headings, paragraphs and lists rebuilt from the layout.
- Detects titles and numbered section headings (
## 3 Method,### 3.1 Data). - Joins broken lines into paragraphs and re-joins words hyphenated across lines.
- Removes running headers, footers and page numbers.
- Handles Japanese, Chinese and Korean text, joined without stray spaces.
- One row per document or one row per page, with document metadata.
- You pay only for pages that contain text. Failed files cost nothing.
What you can do with it
- RAG and search: convert reports, papers and manuals into text you can chunk and embed. Use page mode to cite page numbers.
- Summarizing and analysis: feed whole documents to an LLM without layout noise.
- Archiving and migration: move PDF content into a knowledge base or CMS.
- AI agents: call the Actor as a tool to read a PDF found on the web.
Input
| Field | What it does |
|---|---|
| PDF URLs | Direct links to PDF files, one per line. |
| Output format | markdown (default) or text. |
| Rows | document (default): one row per file. page: one row per page. |
| Page range | For example 1-5 or 1,3,10-12. Empty means all pages. |
| Maximum pages per document | Stop after this many pages. 0 means no limit. |
| Remove running headers and footers | On by default. |
| Insert page markers | Adds <!-- page N --> before each page in document mode. |
| PDF password | For password-protected files. |
{"pdfUrls": ["https://arxiv.org/pdf/1706.03762v7"],"outputFormat": "markdown","outputMode": "document"}
Output
One dataset item per document:
{"url": "https://arxiv.org/pdf/1706.03762v7","fileName": "1706.03762v7","fileSizeBytes": 2215244,"pageCount": 15,"pagesExtracted": 15,"pagesWithText": 15,"markdown": "# Attention Is All You Need\n\n...\n\n## 1 Introduction\n\nRecurrent neural networks, long short-term memory ...","characterCount": 39888,"metadata": { "title": null, "author": null, "creator": "LaTeX with hyperref", "createdAt": "2024-04-10T21:11:43" },"needsOcr": false,"extractedAt": "2026-11-13T15:00:00.000Z"}
In page mode each item also has a page number and holds the content of that page only. With plain-text output the content field is called text instead of markdown.
Documents longer than about two million characters are stored in full in the run's key-value store. The dataset row then contains the beginning of the text, truncated: true, and a link in fullContentUrl.
When a file cannot be processed, the row has an error object instead, for example {"code": "NOT_A_PDF"}, HTTP_404, TIMEOUT, TOO_LARGE (over 100 MB) or PASSWORD_REQUIRED.
Pricing
You pay per page that yielded text (page-extracted event). Pages without text and files that fail are not charged. There is no monthly fee. Set a maximum cost per run to cap spending: the Actor stops when the limit is reached.
Limits
- Scanned PDFs are not supported. The Actor reads the text layer of the PDF and does no OCR. A document without a text layer is returned with
needsOcr: trueand is not charged. - Tables are returned as text, not as Markdown tables. Cell values come out in reading order.
- Multi-column pages follow the order in which the PDF stores the text, which is usually but not always the reading order.
- Some PDFs contain broken character maps. Their text comes out garbled in every tool, including copy and paste from a PDF viewer. Only OCR can recover such files.
- Images, charts and formulas are not converted.
FAQ
Can I convert a local file? Upload it to an Apify key-value store (or any place that gives you a direct link) and pass the URL.
How fast is it? Text extraction takes well under a second for a typical 15-page paper. Most of the run time is the download.
Does it send my documents to an AI service? No. Conversion happens inside the Actor run with the open-source pdf.js library. Nothing is sent to third parties.