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.
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.
| Name | Meaning |
|---|---|
file required | The print PDF to check, e.g. a flyer, business card or poster before uploading it to the printer. |
trim | The 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 |
profile | online-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-4Default: "online-druck" |
bleed | Bleed needed in mm. 0 for products without bleed. Default: 3 |
safety | Safety margin in mm: text closer to the edge than this is reported. Default: 3 |
min_dpi | Image 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_font | Smallest text size in pt before a note. Default: 6 |
min_line | Thinnest line in pt before a note. Default: 0.25 |
max_tac | Total ink coverage guide value in %. Above it is a note, never an error. Default: 300 |
output | json: 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, pngDefault: "json" |
preview | With 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 |
page | Page for output=png. Default: 1 |
lang | Language of messages, hints, report and preview legend. Allowed: en, deDefault: "en" |
Returns application/json. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
400 invalid_param | profile, trim (like 85x55), a number out of range, output or page is wrong; detail says which. |
400 expected_pdf | The file is not a PDF. |
422 pdf_encrypted | Remove the password first (/v1/pdf/unlock). |
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.