# WritersLogic PDF Print Box Validator

> WritersLogic PDF Print Box Validator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Validates PDF page boxes (MediaBox, CropBox, BleedBox, TrimBox, ArtBox) for print readiness by applying ISO 32000-1 defaults, measuring bleed around the trim box, and checking safe margins for live content.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/print-box?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-pdf-print-box-validator-e254bc1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_15kpcXkmWxLdIgvH6J7p_

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 writerslogic-pdf-print-box-validator-e254bc1e -d '<json body>'
```

Example prompt: Check whether this PDF page box setup has enough bleed and safe margins for printing: MediaBox [0, 0, 648, 864], TrimBox [9, 9, 639, 855], BleedBox [0, 0, 648, 864], with a minimum bleed of 3mm and safe margin of 5mm.

## When to prefer this

Use this endpoint when an AI agent is preparing, accepting, or auditing print-ready PDFs and needs to programmatically verify that page box geometry conforms to ISO 32000-1, that sufficient bleed surrounds the trim box, and that live content sits within a declared safe margin — without needing to open or parse the actual PDF binary. It is not a substitute for full preflight (fonts, color, image resolution) but is ideal for geometric box validation in automated print workflows.

## Known failure modes

- Missing required MediaBox returns a validation error
- TrimBox absent causes bleed and safe-area results to be 'unknown' rather than pass/fail
- Coordinates outside allowed range (-10000000 to 10000000) are rejected
- Invalid UserUnit value outside 0.0001–1000 range causes rejection
- minBleed or safeMargin values outside 0–1000 range are rejected
- Malformed array (not exactly 4 numbers) for any box is rejected

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns the resolved and clipped dimensions of each page box after ISO 32000-1 defaults are applied, bleed measurements (in points and the requested unit) on each side of the TrimBox, a pass/fail result for minimum bleed requirements, and a safe-area check indicating whether the content box is within the required safe margin inside the TrimBox. If TrimBox is absent, bleed and safe-area results are returned as 'unknown'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "userUnit": {
   "type": "number",
   "maximum": 1000,
   "minimum": 0.0001,
   "description": "The page's UserUnit (default 1): the size of one user space unit in 1/72 inch."
  },
  "pageBoxes": {
   "type": "object",
   "required": [
    "mediaBox"
   ],
   "properties": {
    "artBox": {
     "type": "array",
     "items": {
      "type": "number",
      "maximum": 10000000,
      "minimum": -10000000
     },
     "maxItems": 4,
     "minItems": 4,
     "description": "[x1 y1 x2 y2] in default user space units; any two diagonal corners."
    },
    "cropBox": {
     "type": "array",
     "items": {
      "type": "number",
      "maximum": 10000000,
      "minimum": -10000000
     },
     "maxItems": 4,
     "minItems": 4,
     "description": "[x1 y1 x2 y2] in default user space units; any two diagonal corners."
    },
    "trimBox": {
     "type": "array",
     "items": {
      "type": "number",
      "maximum": 10000000,
      "minimum": -10000000
     },
     "maxItems": 4,
     "minItems": 4,
     "description": "[x1 y1 x2 y2] in default user space units; any two diagonal corners."
    },
    "bleedBox": {
     "type": "array",
     "items": {
      "type": "number",
      "maximum": 10000000,
      "minimum": -10000000
     },
     "maxItems": 4,
     "minItems": 4,
     "description": "[x1 y1 x2 y2] in default user space units; any two diagonal corners."
    },
    "mediaBox": {
     "type": "array",
     "items": {
      "type": "number",
      "maximum": 10000000,
      "minimum": -10000000
     },
     "maxItems": 4,
     "minItems": 4,
     "description": "[x1 y1 x2 y2] in default user space units; any two diagonal corners."
    }
   },
   "description": "mediaBox is required; the others are optional and default per ISO 32000-1 (cropBox to mediaBox; bleedBox, trimBox, artBox to cropBox).",
   "additionalProperties": false
  },
  "contentBox": {
   "type": "array",
   "items": {
    "type": "number",
    "maximum": 10000000,
    "minimum": -10000000
   },
   "maxItems": 4,
   "minItems": 4,
   "description": "Bounding box of the live content, same coordinates as the page boxes. If absent the ArtBox (when supplied) is used."
  },
  "requirements": {
   "type": "object",
   "properties": {
    "unit": {
     "enum": [
      "pt",
      "mm",
      "in"
     ],
     "type": "string",
     "description": "Unit of minBleed and safeMargin; default mm. pt means points (1/72 inch) of user space after UserUnit."
  
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-pdf-print-box-validator-e254bc1e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
