PDF Text and Markdown Extractor avatar

PDF Text and Markdown Extractor

Pricing

from $2.40 / 1,000 pdf processeds

Go to Apify Store
PDF Text and Markdown Extractor

PDF Text and Markdown Extractor

Extract public PDF URLs into clean text, Markdown, page content, OCR state, and document metadata for AI and automation workflows.

Pricing

from $2.40 / 1,000 pdf processeds

Rating

0.0

(0)

Developer

Fetch Cat

Fetch Cat

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Features

Limited permissions

Share

Extract text, basic Markdown, page-level content, and embedded metadata from direct public PDF links. This PDF text extractor prepares document datasets for search, research, and RAG workflows, with a status and warnings for each completed document.

Quick start

  1. Open the Actor in Apify Console and paste a direct public PDF URL.
  2. Start with a small page limit using the input below.
  3. Open the Dataset tab and inspect status, text, and pages before exporting or passing results to another tool.
{
"pdfUrls": ["https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"],
"maxPages": 5,
"includeMarkdown": true,
"includePages": true
}

Prefer a video guide? This short Apify walkthrough shows you how to set up and run an Actor. It uses a different Actor, but the setup steps are the same.

Ready-to-run examples

Choose a public example to see its settings before starting a run:

What you get

  • Searchable documents: extracted text and embedded title, author, subject, keywords, creator, producer, and dates when available.
  • Page context: selected page numbers, text, Markdown, OCR state, and warnings.
  • Workflow signals: success, partial, or failed document status, nullable error details, and character/word counts.

Use the output for research archives, document search, or downstream AI analysis. Markdown is a simple text rendition, not a reconstruction of tables, images, reading order, or the original visual layout. There is no built-in chunking or summarization.

Who is it for?

  • Research teams: Make public reports and papers searchable.
  • AI developers: Prepare text and Markdown for downstream retrieval workflows.
  • Operations teams: Collect text from public manuals and reference documents.

Input settings

SettingAPI keyMeaning
Public PDF URLspdfUrlsOne to 50 direct public HTTP(S) PDF links. Duplicate URLs are processed once.
Page rangepageRangeOptional 1-indexed selection such as 1-3,5-5,8-. Omitted means all pages, subject to maxPages.
Include MarkdownincludeMarkdownDefaults to true. false makes document and page Markdown null.
Include per-page contentincludePagesDefaults to true. false returns an empty pages array while keeping document text.
OCR scanned pagesenableOcrDefaults to false. Attempts OCR on selected pages with very little extracted text.
OCR languageocrLanguageDefaults to eng. Requires a language installed in the Actor.
Maximum pages per PDFmaxPagesDefaults to 100. Accepts 1–500. The form's example is 20.
PDFs processed in parallelmaxConcurrencyDefaults to 2. Accepts 1–5.
Maximum PDF sizemaxPdfSizeMbDefaults to 25 MB. Accepts 1–100. Larger downloaded files are rejected before parsing.

Selected pages are processed in ascending page order, with duplicates removed. Use 5-5 for page 5 alone. A bare 5 selects page 5 through the end. maxPages limits the selected set, not the highest page number. PDFs can finish in a different order from the input list. Match results using sourceUrl.

Example inputs

To select pages, add "pageRange": "1-3,5-5" to the quick-start input. For an image-only PDF, use its actual direct URL and add "enableOcr": true and "ocrLanguage": "eng". The quick-start PDF has a text layer and is not a scanned-document demonstration.

Output data

Illustrative shape only, not a measured result. Metadata and text availability vary by document.

{
"sourceUrl": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
"fileName": "dummy.pdf",
"status": "success",
"error": null,
"pageCount": 1,
"extractedPageCount": 1,
"metadata": {
"title": null,
"author": null,
"subject": null,
"keywords": null,
"creator": null,
"producer": null,
"creationDate": null,
"modificationDate": null
},
"text": "Example text",
"markdown": "Example text",
"pages": [{"page": 1, "text": "Example text", "markdown": "Example text", "ocrApplied": false, "warnings": []}],
"ocr": {"enabled": false, "language": null, "pagesOcred": 0},
"charCount": 12,
"wordCount": 2,
"processedAt": "2026-10-25T00:00:00.000Z",
"warnings": []
}
FieldsMeaning
sourceUrl, fileNameRequested URL and filename inferred from the response or URL. Filename can be null.
status, error, warningsPer-document outcome and explanations. A successful Actor run can contain failed document rows.
pageCount, extractedPageCountTotal document pages, when readable, and pages handled.
metadataEmbedded document properties. Unavailable values are null.
text, markdown, pagesCombined selected-page content and optional per-page records. Unavailable text is null.
ocrWhether OCR was enabled, requested language, and pages yielding OCR text.
charCount, wordCount, processedAtExtracted-text counts and processing timestamp.

Download your results

Open your run's dataset, choose Export and select JSON, CSV or Excel. JSON keeps nested fields together. CSV and Excel are useful when you want to review the records in a spreadsheet.

See Apify's download and export guide for the available formats and field options.

Pricing

The start event is charged once when a valid extraction run starts.

The pdf-processed event is charged once per PDF with usable extracted text, including partial results.

Failed downloads and unreadable/textless document rows do not incur that document event. The start charge still applies.

See the live Pricing tab for current rates and discounts.

Tips for best results

  • Supply direct PDF download links, not viewer pages. Uploads, passwords, login-only files, and access-control bypass are not supported.
  • Up to 50 unique URLs are accepted. A long batch can stop before every URL or selected page is processed. Do not assume one row per requested URL after a cutoff or interruption.
  • partial indicates useful text with selection-limit or deadline warnings. A completed document with no usable text receives a failed row. Inspect its error before retrying.
  • OCR takes additional time and may fail or produce inaccurate text. An OCR warning does not necessarily make an otherwise readable document partial.
  • Start with a low page limit and enable OCR only when needed. Turning off includePages reduces returned detail, not page extraction work.

Limits and caveats

Available records and fields depend on your input and the source. Review the returned data before using it in another system. A successful run does not guarantee that every requested record or optional field was available.

Automation and integrations

Save your settings for next time

Once you have an input that works for you, save it as an Apify task. This keeps your settings together so you can use them again without filling in the form from scratch.

Run on a schedule

Need fresh results regularly? You can schedule the Actor or a saved task to run at a time that suits you.

Each scheduled run collects the data again. If you want to compare results or highlight changes, add that step in your own workflow.

Send results to your other tools

Use n8n, Make or Zapier to connect this scraper to the rest of your workflow. For example, you could pass its results to an AI assistant or add records to a spreadsheet. Follow the Apify integration guides for your chosen tool.

For a custom connection, an Apify webhook can notify your app when a run finishes or fails. Your app can then fetch the results or handle the failure.

API usage

Want to collect this data from your own app or automation? The examples below send input to the scraper and show how to collect its results.

The Node.js and Python examples wait for the run to finish before reading its results. The cURL example starts the run and returns its details. Wait for that run to finish, then use its defaultDatasetId to fetch the results.

For setup instructions, see Apify's JavaScript client guide, Python client guide and Actor runs API reference.

cURL

curl -X POST 'https://api.apify.com/v2/acts/fetch_cat~pdf-text-markdown-extractor/runs' \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H 'Content-Type: application/json' \
--data @- <<'JSON'
{
"pdfUrls": [
"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
],
"maxPages": 5,
"includeMarkdown": true,
"includePages": true
}
JSON

Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fetch_cat/pdf-text-markdown-extractor').call({
"pdfUrls": [
"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
],
"maxPages": 5,
"includeMarkdown": true,
"includePages": true
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('fetch_cat/pdf-text-markdown-extractor').call(run_input={'pdfUrls': ['https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf'], 'maxPages': 5, 'includeMarkdown': True, 'includePages': True})
print(client.dataset(run['defaultDatasetId']).list_items().items)

API usage notes

Use the same bounded JSON input through the Apify API. The REST call starts a run. Wait for completion and retrieve its default dataset. SDK call examples wait for completion.

MCP and AI agents notes

Example prompt: “Extract up to five pages from this direct public PDF URL, inspect the status and warnings, then summarize the usable text with page references.” Keep includePages enabled for page references. Verify extraction before relying on the summary.

MCP and AI agents

You can ask your AI assistant to collect data with PDF Text and Markdown Extractor and help you work with the results. The scraper returns the data, and your assistant can then summarize it, compare records or prepare notes.

Connect your assistant through the Apify MCP server. MCP gives your assistant a way to find this scraper, run it and read the results. Follow the official setup and sign-in guide for your app.

Easier setup with an Apify plugin

If you use a supported coding assistant, the official Apify plugin can set up the connection for you. It connects your assistant to Apify and includes instructions for common tasks. Follow the guide for your particular app.

Use Apify AI in Console

Prefer to keep everything in Apify? Open Apify AI in Console and ask it to find Fetch Cat's PDF Text and Markdown Extractor. You can describe the data you want and ask questions about the results.

Apify AI is currently in beta. It asks for confirmation before starting an Actor, and normal run charges apply.

Choose your assistant

Connect just this scraper

To keep your setup focused on this scraper, add this server configuration to a compatible MCP client:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=fetch_cat/pdf-text-markdown-extractor"
}
}
}

Sign in to Apify when your client asks. If your client uses a Bearer token instead, follow its setup guide and keep the token in its secure configuration. Configuration formats vary by app, so use the linked guide if your client needs a different format.

Use Apify's general server

Already connected to the general Apify MCP server at https://mcp.apify.com? You can use it to find this scraper without adding another server. Ask your assistant to use PDF Text and Markdown Extractor by Fetch Cat, or give it the identifier fetch_cat/pdf-text-markdown-extractor.

Your assistant can check the available settings and retrieve the results from the returned run. If the run is still working, it should follow that run rather than start it again. Both connection options use Apify's hosted service.

Example requests

Give your assistant the public PDF links along with a request like one of these:

  • “Use Fetch Cat's PDF extractor to read the first five pages of this report. Summarize the key points and include page references.”
  • “Extract the text from these public PDF manuals and organize it into Markdown notes. Keep a link to the original document with each set of notes.”
  • “Collect the text from these research papers so I can search it later. Tell me which documents could not be read.”

Normal Apify charges apply. Check the live Pricing tab before asking your assistant to run a larger batch.

Pay with x402

If your AI agent has a funded wallet, it can pay for Apify usage through x402. This experimental option lets an agent use Apify without a conventional account.

Apify AGI provides a prepaid API token with a spending cap after payment. Your agent can use that token to run this scraper through the Apify API or an authenticated MCP connection.

Some MCP setups also support paying for each request directly. That is a different payment option, so check the official guide for its availability.

Follow the official guide for wallet setup, supported payment options and current terms. Apify handles the payments. Keep wallet keys and payment tokens in your agent's secure configuration.

Other ways for agents to pay

Apify also supports MPP for prepaid access through AGI and Skyfire for eligible Actors. If your agent already uses one of these, see the agentic payment guide to choose the right setup.

FAQ

Can I convert a PDF to Markdown for RAG?

Yes, but the output is basic text-based Markdown. It does not preserve complex layouts, extract tables into cells, or generate vector chunks.

Can it read scanned PDFs?

Set enableOcr to true. OCR is attempted on selected pages with very little native text. Results depend on scan quality and the installed language. Inspect ocr, page warnings, and extracted text.

What happens when one URL fails?

A completed failed attempt receives a failed row, and other admitted URLs continue. Run success does not mean every document succeeded or the entire requested batch finished.

Can I upload a private file or supply a password?

No. The public input contract supports direct public PDF URLs only.

What alternatives fit other document workflows?

Use the related web-page tool for HTML rather than PDFs, or the arXiv tool to discover papers before extracting their public PDF links.

Support and feedback

For custom additions or integrations, email hello@fetchcat.dev.

Found an error or have a feature request? Open an issue with the run URL, a non-sensitive input example and what you expected.

Need help sharing it? See Apify’s guide to sharing a run when reporting an issue. Sharing a run can give the developer access to its input, logs and results, so use a run that contains no sensitive data. Please leave out API tokens, passwords, cookies, private documents and personal data. Use a public sample URL or a redacted example instead.

Tried this scraper? We'd love to hear how it worked for you. Leave a review to help others choose the right tool and help us improve it. Your feedback means a lot to us.

Made with care for curious people, AI agents and the possibilities in data. ♥