BiGapiguides
POST /v1/pdf/preflight · 1 cent per operation

Print preflight: is this PDF print ready?

Is this PDF print ready? Checks format, bleed, safety margin, fonts, image resolution, RGB, total ink, white overprint and more like an online printer. Findings say what to do and which tool fixes it.

Try it

export KEY=bigapi_…   # your key, once per terminal
curl -X POST https://api.bigapi.dev/v1/pdf/preflight -H "Authorization: Bearer $KEY" -F 'file=@flyer.pdf' -F trim=148x210

New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.

Parameters

NameMeaning
file requiredThe print PDF to check, e.g. a flyer, business card or poster before uploading it to the printer.
trimThe ordered final format in mm, e.g. 85x55 for a business card or 210x297 for A4. Portrait or landscape both match.
Default: not set: the final format is taken from the PDF (TrimBox) and not compared
profileonline-druck: what typical online printers accept (RGB and spot colours only warned). pdfx-1a and pdfx-4 additionally require the PDF/X marking and an output intent; pdfx-1a forbids transparency and RGB.
Allowed: online-druck, pdfx-1a, pdfx-4
Default: "online-druck"
bleedBleed needed in mm. 0 for products without bleed.
Default: 3
safetySafety margin in mm: text closer to the edge than this is reported.
Default: 3
min_dpiImage resolution that counts as sharp enough.
Default: 250 dpi (from DIN A2 on half, because posters are seen from further away); below 60 % of it is an error
min_fontSmallest text size in pt before a note.
Default: 6
min_lineThinnest line in pt before a note.
Default: 0.25
max_tacTotal ink coverage guide value in %. Above it is a note, never an error.
Default: 300
outputjson: verdict and findings. pdf: report to pass on, with page previews. png: preview of one page with final format, bleed, safety zone and problems marked.
Allowed: json, pdf, png
Default: "json"
previewWith output=json: add a preview of the page (preview.png_base64) with final format, bleed, safety zone and problems marked, in the same call.
Default: false
pagePage for output=png.
Default: 1
langLanguage of messages, hints, report and preview legend.
Allowed: en, de
Default: "en"

Result and price

1¢ · 1 cent per operation

Returns application/json. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).

Good to know

Errors your agent should handle

400 invalid_paramprofile, trim (like 85x55), a number out of range, output or page is wrong; detail says which.
400 expected_pdfThe file is not a PDF.
422 pdf_encryptedRemove the password first (/v1/pdf/unlock).

From an agent (MCP)

Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds pdf_preflight on its own.

Check whether this flyer PDF is ready for the online printer, it is DIN A5 portrait, and tell me what to fix.