# Printwren: Web Page & HTML to PDF Converter

> Printwren: Web Page & HTML to PDF Converter is a paid API for AI agents from printwren.cybermax-tools.workers.dev, paid per call via x402, $0.012/call, status unknown (last checked 2026-10-11).

Converts any public web page URL or raw HTML into a clean PDF using real Chrome rendering, with options for paper size, margins, orientation, page numbers, and background graphics.

## Facts

- Endpoint: GET https://printwren.cybermax-tools.workers.dev/x402/api/pdf?utm_source=zero.xyz
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/printwren-web-page-html-to-pdf-converter-b68b0a4e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Uv3uNdY5G-n_Ipe-XqZE9

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 printwren-web-page-html-to-pdf-converter-b68b0a4e
```

Example prompt: Can you convert https://example.com/report into a clean PDF using print media mode, A4 paper, with page numbers enabled and a 15mm margin?

## When to prefer this

Choose this endpoint when you need a faithful, Chrome-rendered PDF from a live URL or raw HTML — especially when print fidelity matters (backgrounds, fonts, layout). It supports granular paper size and margin control, page numbers, and both print and screen media modes. Prefer it over screenshot services when the output must be a true PDF (not an image), and over headless browser setups when you want a managed, pay-per-call solution without infrastructure overhead.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — PDF generation fails
- HTML or URL content is too large or complex — timeout or truncation
- base64 output exceeds 3 MB limit — response may be truncated or rejected
- Invalid paper format or margin value — validation error returned
- Network issues reaching the target URL — empty or error response
- JavaScript-heavy pages may not fully render if scripts time out

## How this service works

Any web page or HTML to a clean PDF. Real Chrome printing, page numbers and all, in one call Try it free in one click, no sign-up.

## Output

Returns a JSON object. When includePdfBase64 is false (default), returns metadata about the generated PDF (e.g. page count, size). When includePdfBase64 is true, includes the PDF file encoded as a base64 string (up to 3 MB) that can be decoded and saved as a .pdf file.

## 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",
     "properties": {
      "url": {
       "type": "string",
       "description": "Public web page (or POST \"html\" instead)"
      },
      "media": {
       "enum": [
        "print",
        "screen"
       ],
       "type": "string",
       "default": "print",
       "description": "\"print\" (default, like Ctrl+P) or \"screen\" (looks like the browser)"
      },
      "format": {
       "enum": [
        "A4",
        "Letter",
        "Legal",
        "A3",
        "A5",
        "Tabloid"
       ],
       "type": "string",
       "default": "A4",
       "description": "Paper size: A4, Letter, Legal, A3, A5, Tabloid (default A4)"
      },
      "margin": {
       "type": "string",
       "default": "10mm",
       "description": "CSS length for all sides (default 10mm)"
      },
      "landscape": {
       "type": "boolean",
       "default": false,
       "description": "Wide pages"
      },
      "pageNumbers": {
       "type": "boolean",
       "default": false,
       "description": "Footer with \"page / total\""
      },
      "printBackground": {
       "type": "boolean",
       "default": true,
       "description": "Include background colours and images"
      },
      "includePdfBase64": {
       "type": "boolean",
       "default": false,
       "description": "Return the PDF bytes as base64 (up to 3 MB)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/printwren-web-page-html-to-pdf-converter-b68b0a4e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from printwren.cybermax-tools.workers.dev](https://www.zero.xyz/host/printwren.cybermax-tools.workers.dev/llms.txt)
