# TinyOps Text-to-PDF Converter

> TinyOps Text-to-PDF Converter is a paid API for AI agents from x402-preflight.tinyopsstudio.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Converts plain text into a PDF document in-memory and returns the result as a base64-encoded PDF string.

## Facts

- Endpoint: POST https://x402-preflight.tinyopsstudio.com/text-to-pdf
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tinyops-text-to-pdf-converter-af361938
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lMcczxEcegmtLU0boIMFj

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 tinyops-text-to-pdf-converter-af361938 -d '<json body>'
```

Example prompt: Can you convert the following text into a PDF for me — title it 'Q3 Report Summary' and use this content: 'Revenue grew 18% year-over-year, driven by strong enterprise adoption and improved retention metrics across all product lines.'

## When to prefer this

Choose this endpoint when you need a lightweight, private, in-memory text-to-PDF conversion that does not persist data server-side, especially for sensitive or confidential content. It is well-suited for automation pipelines (e.g., n8n workflows) that need to produce PDF artifacts programmatically at low cost ($0.05 USDC per call). Prefer this over cloud storage-based PDF services when privacy and ephemeral processing are priorities.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected with validation error
- Title exceeds 120 character limit — request rejected
- Missing or empty text field — likely returns error or empty PDF
- Payment not completed via x402 protocol — 402 Payment Required response
- Malformed JSON body — 400 Bad Request

## How this service works

Paid automation readiness analysis, acceptance evidence, exported n8n workflow auditing, private in-memory text-to-PDF conversion, and sensitive-text redaction with a newly generated PDF.

## Output

Returns a JSON object with ok: true, the base64-encoded PDF (pdf_base64), the suggested filename, page count, total byte length, and content type (application/pdf). The agent can decode the base64 string to obtain the binary PDF file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 50000
  },
  "title": {
   "type": "string",
   "maxLength": 120
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "encoding": "base64",
  "filename": "converted-document.pdf",
  "page_count": 1,
  "pdf_base64": "JVBERi0xLjQKLi4u",
  "byte_length": 840,
  "content_type": "application/pdf"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tinyops-text-to-pdf-converter-af361938/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-preflight.tinyopsstudio.com](https://www.zero.xyz/host/x402-preflight.tinyopsstudio.com/llms.txt)
