{"uid":"cap_15kpcXkmWxLdIgvH6J7p_","slug":"writerslogic-pdf-print-box-validator-e254bc1e","name":"WritersLogic PDF Print Box Validator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/print-box?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."},"minBleed":{"type":"number","maximum":1000,"minimum":0,"description":"Smallest allowed distance from trim to bleed box on every side."},"safeMargin":{"type":"number","maximum":1000,"minimum":0,"description":"Smallest allowed distance from trim to live content on every side."},"tolerancePt":{"type":"number","maximum":1,"minimum":0,"description":"Slack in points before a shortfall counts (default 0.01) so 3 mm written as 8.5 pt is not a failure."}},"additionalProperties":false}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__kzqZJsmj9nBbnxYDUz-v","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Validate bleed before sending to printer","prompt":"Before I send this book cover to the printer, check the page boxes for me: MediaBox [0, 0, 657, 873], TrimBox [9, 9, 648, 864], BleedBox [0, 0, 657, 873], ContentBox [18, 18, 639, 855] — I need at least 3mm bleed and 5mm safe margin."},{"title":"Automated print-ready PDF acceptance check","prompt":"An uploaded PDF has these page boxes: MediaBox [0, 0, 612, 792], TrimBox [8.5, 8.5, 603.5, 783.5], BleedBox [0, 0, 612, 792] — verify it meets 3mm minimum bleed and 4mm safe margin so I can accept it as print-ready."},{"title":"Diagnose missing bleed on one side","prompt":"My PDF has MediaBox [0, 0, 620, 800], TrimBox [10, 10, 610, 790], BleedBox [5, 0, 620, 800] — can you check the page boxes and tell me if there's a bleed problem on any side, using 3mm minimum bleed and 5mm safe margin in mm?"}],"resultDescription":"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'.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:32:48.225Z","isFirstParty":false,"canonicalSlug":"writerslogic-pdf-print-box-validator-e254bc1e"}