# Convert Bulk PDF URLs to LLM-Ready Markdown for RAG

**Use case:** 

Turn lists of public PDF URLs—research papers, whitepapers, filings, and reports—into clean Markdown ready for LLMs, RAG chunking, and vector stores. PDFs convert automatically to Markdown with no extra document surcharge at the exact same $0.40 per 1,000 flat rate, even on bot-protected hosts. Failed downloads are free.

## Input

```json
{
  "startUrls": [
    "https://arxiv.org/pdf/1706.03762",
    "https://arxiv.org/pdf/2005.11401"
  ],
  "jsRender": false,
  "includeMetadata": false,
  "formats": [
    "markdown"
  ],
  "deliverMode": "perPost"
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "fetch.loadedUrl": {
    "label": "Loaded URL",
    "format": "link"
  },
  "fetch.loadedTime": {
    "label": "Loaded Time",
    "format": "date"
  },
  "fetch.httpStatusCode": {
    "label": "HTTP Status",
    "format": "number"
  },
  "fetch.contentLengthBytes": {
    "label": "Content Length",
    "format": "number"
  },
  "fetch.contentType": {
    "label": "Content Type",
    "format": "text"
  },
  "metadata.canonicalUrl": {
    "label": "Canonical URL",
    "format": "link"
  },
  "metadata.title": {
    "label": "Title",
    "format": "text"
  },
  "metadata.description": {
    "label": "Description",
    "format": "text"
  },
  "metadata.author": {
    "label": "Author",
    "format": "text"
  },
  "metadata.keywords": {
    "label": "Keywords",
    "format": "text"
  },
  "metadata.languageCode": {
    "label": "Language",
    "format": "text"
  },
  "metadata.jsonLd": {
    "label": "JSON-LD",
    "format": "object"
  },
  "metadata.headers": {
    "label": "Headers",
    "format": "object"
  },
  "markdown": {
    "label": "Markdown",
    "format": "text"
  },
  "html": {
    "label": "HTML",
    "format": "text"
  },
  "text": {
    "label": "Text",
    "format": "text"
  },
  "links": {
    "label": "Links",
    "format": "array"
  },
  "raw": {
    "label": "Raw",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Web Unblocker & URL to Markdown: Cloudflare Bypass, PDF & Bulk Actor is ready to run with the inputs already set for "Convert Bulk PDF URLs to LLM-Ready Markdown for RAG". [Sign up or log in](https://console.apify.com/create-task-from-example/mVY4GLlupGedqDED1) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Convert Bulk PDF URLs to LLM-Ready Markdown for RAG" task

The Web Unblocker & URL to Markdown: Cloudflare Bypass, PDF & Bulk Actor will start running based on the input automatically. You can also change all the input fields, like URLs, render javascript, and more, to match your specific use case.

### 3. Receive the "Convert Bulk PDF URLs to LLM-Ready 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 URL, loaded url, loaded time, and more.

### 4. 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 Bulk PDF URLs to LLM-Ready Markdown for RAG" task via API](https://apify.com/epctex/web-fetch.md).

## FAQ

### How much does converting PDF URLs to Markdown cost?

PDFs cost the exact same flat $0.40 per 1,000 successful URLs ($0.0004 per PDF) as web pages—with no per-page PDF multiplier, proxy fee, or dataset surcharge.

### Can I mix PDF URLs and regular web pages in the same batch?

Yes. Put both web pages and PDF links into startUrls. When formats is empty or set to [\"markdown\"], both HTML pages and PDFs come back as Markdown automatically.

### What if a PDF is hosted behind Cloudflare or blocks scripted bots?

Bot protection and anti-bot challenges on the hosting domain are handled automatically before the PDF is converted to Markdown.

### Should I enable jsRender when fetching direct PDF URLs?

No. Keep jsRender set to false ($0.40/1K) for direct PDF links—headless browser rendering is not needed for direct PDF files and costs $0.80/1K.

### Can I download the raw PDF alongside the Markdown output?

Yes. Include "raw" in formats (for example ["markdown", "raw"]) if you want both the converted Markdown and the original untouched response body.

### What export formats are available for my converted PDFs?

Download the dataset as JSON, CSV, Excel, or XML, read it via API/Python/Node.js for RAG chunking, or send it directly to Notion via an MCP connector.

## About this Actor

This example demonstrates how to use [Web Unblocker & URL to Markdown: Cloudflare Bypass, PDF & Bulk](https://apify.com/epctex/web-fetch.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/epctex/web-fetch.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/epctex/web-fetch.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
