Skip to content
Fourohtwo

Preflight a PDF for print

format.halowerk.com/v1/pdf-print-preflight

Preflight a PDF for print: trim and bleed boxes in mm, embedded fonts, effective image resolution in ppi, RGB/Lab/spot colour use, hairlines, transparency, overprint, printable annotations and output intent, with errors and warnings. Parses the PDF with pdf-lib 1.17.1 and walks every page content stream and nested form XObject with an own interpreter (ISO 32000-2 §8 graphics state and colour space

BaseAnswering
POSThttps://format.halowerk.com/v1/pdf-print-preflight

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://format.halowerk.com/v1/pdf-print-preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"bleed_mm":3,"content_base64":"JVBERi0xLjcKJYGBgYEKCjUgMCBvYmoKPDwKL0ZpbHRlciAvRmxhdGVEZWNvZGUKL0xlbmd0aCAxMDQKPj4Kc3RyZWFtCnicjYo7CoAwEET7PUVOEGZNdrM5hrVYKSKohZXXN1Gw0UIG5vOYneDZ4dJCcAd1fakj3ZBd8qwSJIaABFP9IsP23Ku/Z43qFpMXyRBhNmY0biUFfI7RjM1y0mA/Xyh0polaOgGiLCZlCmVuZHN0cmVhbQplbmRvYmoKCjYgMCBvYmoKPDwKL0ZpbHRlciAvRmxhdGVEZWNvZGUKL1R5cGUgL09ialN0bQovTiA0Ci9GaXJzdCAyMAovTGVuZ3RoIDM3Ngo+PgpzdHJlYW0K),
});
console.log(await res.json());

Example input

{"bleed_mm":3,"content_base64":"JVBERi0xLjcKJYGBgYEKCjUgMCBvYmoKPDwKL0ZpbHRlciAvRmxhdGVEZWNvZGUKL0xlbmd0aCAxMDQKPj4Kc3RyZWFtCnicjYo7CoAwEET7PUVOEGZNdrM5hrVYKSKohZXXN1Gw0UIG5vOYneDZ4dJCcAd1fakj3ZBd8qwSJIaABFP9IsP23Ku/Z43qFpMXyRBhNmY0biUFfI7RjM1y0mA/Xyh0polaOgGiLCZlCmVuZHN0cmVhbQplbmRvYmoKCjYgMCBvYmoKPDwKL0ZpbHRlciAvRmxhdGVEZWNvZGUKL1R5cGUgL09ialN0bQovTiA0Ci9GaXJzdCAyMAovTGVuZ3RoIDM3Ngo+PgpzdHJlYW0K