# Convert arXiv AI research papers to Markdown

**Use case:** 

Downloads direct arXiv PDF files for foundational AI papers (Attention Is All You Need and Retrieval-Augmented Generation) and converts each into page-numbered Markdown and plain text with ## Page N markers, headings, tables and links preserved. Built for RAG ingestion, LLM context prep and page-level citations.

## Input

```json
{
  "pdfUrls": [
    "https://arxiv.org/pdf/1706.03762",
    "https://arxiv.org/pdf/2005.11401"
  ],
  "maxItems": 10,
  "maxPages": 50,
  "maxMbPerFile": 50,
  "maxChars": 400000,
  "respectRobotsTxt": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "url": {
    "label": "PDF",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "pdfType": {
    "label": "Pdf type",
    "format": "string"
  },
  "pageCount": {
    "label": "Pages",
    "format": "integer"
  },
  "pagesReturned": {
    "label": "Pages read",
    "format": "integer"
  },
  "charCount": {
    "label": "Characters",
    "format": "integer"
  },
  "truncated": {
    "label": "Truncated",
    "format": "boolean"
  },
  "truncatedBy": {
    "label": "Cut by",
    "format": "string"
  }
}
```

## How it works

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

The PDF to Markdown Extractor: Page Numbers & Tables Actor is ready to run with the inputs already set for "Convert arXiv AI research papers to Markdown". [Sign up or log in](https://console.apify.com/create-task-from-example/KLZ2eNaEjjRyZe01m) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Convert arXiv AI research papers to Markdown" task

The PDF to Markdown Extractor: Page Numbers & Tables Actor will start running based on the input automatically. You can also change all the input fields, like PDF URLs, maximum pdfs, and more, to match your specific use case.

### 3. Receive the "Convert arXiv AI research papers to Markdown" 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 PDF, title, status, 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 arXiv AI research papers to Markdown" task via API](https://apify.com/kizukidata/pdf-to-markdown.md).

## FAQ

### What does the arXiv AI papers PDF to Markdown task return?

The arXiv AI papers PDF to Markdown task returns one row per PDF with title, status, pdfType, pageCount, pagesReturned, pagesNeedingOcr, markdown with ## Page N markers, plain text and charCount.

### Does the output keep page numbers for RAG citations?

Yes. The arXiv AI papers PDF to Markdown task inserts ## Page N headings in markdown and Page N lines in text so chunks can cite the exact page number.

### What happens if a PDF has more than 50 pages?

In the arXiv AI papers PDF to Markdown task, Maximum pages per PDF stops at 50 pages and sets truncated to true while pageCount still reports the full length; you can raise it up to 500.

### Does the task run OCR or follow HTML viewer links?

No. The arXiv AI papers PDF to Markdown task requires direct PDF URLs, runs no OCR, needs no login and is not affiliated with arXiv.

## About this Actor

This example demonstrates how to use [PDF to Markdown Extractor: Page Numbers & Tables](https://apify.com/kizukidata/pdf-to-markdown.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/kizukidata/pdf-to-markdown.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/kizukidata/pdf-to-markdown.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`).
