# Agent Tools PDF to Text/Markdown Extractor

> Agent Tools PDF to Text/Markdown Extractor is a paid API for AI agents from agent-tools.jbarkules.workers.dev, paid per call via x402, $0.0035/call, status unknown (last checked 2026-10-28).

Converts a public PDF URL into plain text or markdown, returning content page-by-page for RAG pipelines, summarization, and document analysis.

## Facts

- Endpoint: GET https://agent-tools.jbarkules.workers.dev/v1/pdf/text?utm_source=zero.xyz
- Price: $0.0035/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-tools-pdf-to-text-markdown-extractor-f82d9d4b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N-NugzMU60Mz4GVFER2KJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-tools-pdf-to-text-markdown-extractor-f82d9d4b
```

Example prompt: Can you pull the text out of this PDF — https://example.com/report.pdf — and give it to me as markdown so I can feed it into my RAG pipeline?

## When to prefer this

Choose this endpoint when you have a public PDF URL and need clean, structured text output per page for use in RAG, summarization, or search indexing. It is ideal for text-based PDFs such as reports, papers, contracts, and invoices up to 20 MB. For image-based or scanned PDFs, prefer the OCR or document parsing sibling endpoints. No storage occurs, making it safe for sensitive documents.

## Known failure modes

- PDF URL is not publicly accessible or returns a non-200 response
- PDF file exceeds 20 MB size limit
- URL does not point to a valid PDF file
- Scanned/image-only PDFs with no embedded text return empty or minimal text (use OCR endpoint instead)
- Malformed or corrupted PDF cannot be parsed
- Invalid format parameter (must be 'text' or 'markdown')

## How this service works

PDF to text or markdown for RAG, summarizing, search indexing and reading reports, papers, contracts and invoices. Give a PDF URL (max 20 MB); returns text per page. format=text or markdown. Not stored.

## Output

Returns a JSON object containing the full extracted text (as plain text or markdown), the number of pages, the character count, and the format used. Content is organized per page and not stored server-side.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public PDF URL"
      },
      "format": {
       "enum": [
        "text",
        "markdown"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "## Page 1\n\nSample PDF\nThis is a simple PDF file...",
  "pages": 1,
  "format": "markdown",
  "characters": 2859
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-tools-pdf-to-text-markdown-extractor-f82d9d4b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-tools.jbarkules.workers.dev](https://www.zero.xyz/host/agent-tools.jbarkules.workers.dev/llms.txt)
