# PDF OCR Text Extraction

> PDF OCR Text Extraction is a paid API for AI agents from manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Extracts printed and handwritten text from a PDF document using OCR, supporting page selection and locale hints.

## Facts

- Endpoint: POST https://manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io/api/v1/content/pdf-to-text
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pdf-ocr-text-extraction-39450ebf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KUDLA-IiC0ZHW1HtRbx0E

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-ocr-text-extraction-39450ebf -d '<json body>'
```

Example prompt: Can you extract all the text from this PDF I'm sending you — it's a scanned contract with both printed and handwritten annotations, pages 1-5, and it's in English.

## When to prefer this

Choose this endpoint when you need raw OCR text from a PDF, especially scanned or image-based PDFs containing handwriting. Prefer it over the structured PDF extractor when you need plain text output without layout metadata, and over the PDF-to-Markdown converter when document formatting is irrelevant.

## Known failure modes

- Invalid base64 encoding causes rejection
- Page range references pages beyond the document length
- PDF is password-protected or encrypted and unreadable
- Extremely low-quality scan results in poor OCR accuracy
- pdfBase64 exceeds the ~10MB size limit
- Unsupported locale code causes processing error

## How this service works

Extract printed and handwritten text from a supplied PDF using OCR.

## Output

Returns the recognized text content extracted from the specified pages of the PDF, covering both printed typography and handwritten content, preserving the textual content found via OCR.

## 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": {
  "text": "Example document text.",
  "pageCount": 1,
  "processedPages": [
   1
  ],
  "textCharacters": 22
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pdf-ocr-text-extraction-39450ebf/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)
