Free plan

Print preflight

Check a PDF is ready for the printer and list any problems
POST
/v1/pdfs/preflight

About this tool

This tool checks a PDF before you send it to print, and lists what could go wrong. It looks at fonts that are not included in the file, pictures that are too low in resolution (not sharp enough), colours, pages of different sizes, trim and bleed areas, and see-through effects. You pick a profile for web, office printing or professional printing. Your file is not changed.
For example, you check a brochure for missing fonts and blurry pictures before sending it to the print shop.

How to use it

  1. Choose this tool.
  2. Add your PDF.
  3. Choose the profile that matches your use: web, print or prepress (professional printing).
  4. If you like, set the lowest picture sharpness you accept, and switch individual checks on or off.
  5. Press Generate, then read the report.

What you get back

You get a report that says whether the file passed and lists each problem found. You can copy or download it.
GOOD TO KNOW
This is a practical check, not a PDF/X conformance test. Picture resolution is the effective ppi on the page. Counts as one PDF operation.
TEST IT LIVE

Try Print preflight in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
PDFs
Plan
Free
Method
POST
Endpoint
/v1/pdfs/preflight
Tool ID
pdfs.preflight
Authentication
API key
Accepts
PDF
Background jobs
Yes
Usage group
Pdf
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/preflight" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'profile=print' \
  -F 'pages=1-3' \
  -F 'min_ppi=30'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.pdfs.preflight({
    "file": 'document.pdf',
    "profile": "print",
    "pages": "1-3",
    "min_ppi": 30
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->pdfs()->preflight([
    'file' => 'document.pdf',
    'profile' => 'print',
    'pages' => '1-3',
    'min_ppi' => 30,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Check a PDF before it goes to a printer: fonts embedded, picture resolution, RGB pictures, mixed page sizes, trim and bleed boxes, encryption and transparency, against a web, print or prepress profile.

Print preflight accepts PDF. You can send several files in one request.

Print preflight is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/pdfs/preflight with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.