# PDF to Markdown Converter

> PDF to Markdown Converter is a paid API for AI agents from manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Converts a base64-encoded PDF into structured Markdown, preserving document layout, tables, and reading order.

## Facts

- Endpoint: POST https://manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io/api/v1/content/pdf-to-markdown
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pdf-to-markdown-converter-f89f06a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__ZiiQBtSW4jKGAQGiAbB0

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 pdf-to-markdown-converter-f89f06a0 -d '<json body>'
```

Example prompt: Can you convert this PDF (attached as base64) into Markdown for me, including pages 1-5, and make sure the tables are preserved?

## When to prefer this

Use this endpoint when you need a clean Markdown representation of a PDF's textual and tabular content — ideal for feeding PDF documents into LLM pipelines, CMS systems, or search indexes. Prefer this over raw OCR endpoints when you want structure (headings, tables) preserved as Markdown syntax. Use the sibling HTML-to-Markdown endpoint for web content instead.

## Known failure modes

- Invalid or corrupt base64 PDF input returns an error
- Page range pattern doesn't match expected format (e.g. non-numeric or zero-indexed) causes validation failure
- PDF exceeds maximum base64 size (~10MB encoded) and is rejected
- Scanned image-only PDFs with no embedded text may produce poor Markdown output
- Locale string doesn't match expected pattern causing rejection

## How this service works

Convert a supplied PDF into Markdown while preserving document structure and tables.

## Output

Returns a Markdown-formatted string representation of the PDF content, with document structure (headings, paragraphs, lists) and tables preserved as Markdown syntax. Page ranges can be targeted for partial document conversion.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pages": {
   "type": "string",
   "pattern": "^[1-9]\\d*(?:-[1-9]\\d*)?(?:,[1-9]\\d*(?:-[1-9]\\d*)?)*$",
   "maxLength": 512,
   "minLength": 1
  },
  "locale": {
   "type": "string",
   "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$",
   "maxLength": 32,
   "minLength": 2
  },
  "pdfBase64": {
   "type": "string",
   "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
   "maxLength": 13981016,
   "minLength": 8
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "markdown": "# Example\n\nDocument text.",
  "pageCount": 1,
  "processedPages": [
   1
  ],
  "markdownCharacters": 25
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pdf-to-markdown-converter-f89f06a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io](https://www.zero.xyz/host/manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io/llms.txt)
