Sub topic 14
Verifying the exported file
You have exported a PDF/X file. This chapter covers how to check it independently of the application that made it. It assumes you can run commands in a terminal and open a PDF in Acrobat Pro or a similar viewer. It also assumes you know the export settings from the previous chapter. The command-line examples use the Poppler tools (pdfinfo, pdffonts, pdfimages) and Ghostscript. Both are free and available on Linux, macOS and Windows.
Why verify after exporting
The export dialog records what you asked for. It does not prove what ended up in the file. Common causes of a gap between the two:
- A preset was changed by a previous job and you did not notice.
- A font was substituted during export.
- A linked image was swapped or relinked after preflight.
- The application fell back to a different output intent.
- A plug-in or script modified the file after export.
Preflight on the layout file and verification of the exported PDF are separate steps. The first checks your source. The second checks the artifact the printer will receive. Verify with a tool other than the one that produced the file, so one program's blind spot does not hide a problem.
The verification sequence
Work from the cheapest, most structural checks to the visual ones. A structural failure, such as a wrong trim size, makes the visual checks meaningless.
Never patch the exported PDF by hand and send it on. Fix the source and re-export, so the layout file and the PDF stay in step. Otherwise the next reprint starts from a file that no longer matches what was approved.
Check 1: standard and output intent
Confirm that the file claims the standard you intended. The XMP metadata in a PDF/X-4 file carries a version identifier. Print it with:
pdfinfo -meta job.pdfLook for pdfxid:GTS_PDFXVersion in the XMP output. It should read something like PDF/X-4. Newer Poppler versions also print a PDF subtype line in the plain pdfinfo output. If neither appears, the file is probably an ordinary PDF and not a PDF/X file at all.
pdfinfo does not show the output intent. For that, open the file in Acrobat Pro and use Output Preview, or the PDF Standards panel. Check three things:
- The output intent name matches the condition your printer specified, for example a coated or uncoated press profile.
- The profile is described as an output intent and not only as a profile attached to individual images.
- The file validates against the standard. In Acrobat Pro, run the preflight profile "Verify compliance with PDF/X-4" (or the version you chose).
A file can claim PDF/X conformance and still fail validation. Claiming and conforming are different, and printers care about the second.
Check 2: page boxes and page count
The trim and bleed boxes decide where the printer cuts, so they are the most important numbers in the file. Print them:
pdfinfo -box job.pdfBy default this reports only the first page. For a multi-page job, add -f 1 -l 8 (first and last page) or check every page. Measurements are in points. Convert to millimeters with 1 pt = 0.3528 mm.
For an A5 flyer with 3 mm bleed on every side, the expected values are:
| Box | Meaning | Expected size |
|---|---|---|
| TrimBox | Final cut size | 148 × 210 mm (about 419.5 × 595.3 pt) |
| BleedBox | Trim plus bleed | 154 × 216 mm (about 436.6 × 612.3 pt) |
| MediaBox | Sheet including marks | Equal to or larger than BleedBox |
| CropBox | Visible area in viewers | Often equals MediaBox |
Things to check:
- TrimBox exists. PDF/X requires a TrimBox or an ArtBox, and a missing TrimBox is a typical fail.
- BleedBox is the TrimBox expanded by exactly the bleed the printer requested.
- Every page has the same trim size, unless the job genuinely mixes sizes.
- The page count matches the layout. Printers imposing booklets need multiples of four, so check this against the spec.
If you added printer marks, the MediaBox must be large enough to hold them. The marks must stay outside the BleedBox.
Check 3: fonts
List every font and whether it is embedded:
pdffonts job.pdfThe output has one row per font. Read the emb column. Every row should say yes. A no is a font the printer's system may substitute, and substitution changes line breaks and glyph shapes. The sub column says yes for subset fonts. Subsetting is normal and desirable, because it embeds only the glyphs the document uses.
Also check:
- Unexpected fonts. A stray font from an imported ad or a hidden text frame can show up here, and it tells you something is on the page that you did not plan.
- Font types.
Type 3fonts are bitmap-like or procedural and often render poorly. They usually come from imported vector art and are worth tracing back. - Font names with random prefixes such as
ABCDEF+Helvetica. The prefix marks a subset. It is not an error.
If text was converted to outlines, it will not appear here. That is fine for a logo, but outlined body text cannot be edited or searched, and very small outlined text can look heavier.
Check 4: images and ink coverage
List each placed image with its color space and effective resolution:
pdfimages -list job.pdfRead the color and x-ppi / y-ppi columns:
rgbin a job that should be CMYK means a conversion did not happen. Whether that is acceptable depends on your workflow, because PDF/X-4 permits RGB when the file carries an output intent, but many printers still want CMYK. Follow the printer's spec.grayis normal for black-and-white photographs.cmyk,icc,sepanddevnare other color spaces you may see.- The effective resolution should meet the printer's minimum, commonly 300 ppi for photographs. Line art is usually asked for at 600 to 1200 ppi. A value like 96 ppi means a screen-resolution image was scaled up.
- Both ppi values should be nearly equal. A large difference means the image was stretched non-proportionally.
Then check ink usage per page with Ghostscript:
gs -o - -sDEVICE=inkcov job.pdfEach page produces a line of four numbers, the fractions of the page covered by cyan, magenta, yellow and black, followed by CMYK OK. Use it to spot patterns:
- A page that should be black-only but shows cyan, magenta or yellow values above zero. That page contains color you did not intend, perhaps a rich black or an RGB-converted gray.
- A page where all four values are high. That page may be very heavy on ink.
- A black-and-white job where every page shows nonzero color.
Note that inkcov also does not show spot colors as separate plates. If the job should contain a spot color, check for it in Acrobat's Output Preview separations list.
Check 5: visual review
Numbers cannot tell you that a headline sits on the trim line or that a photo is the wrong one. Open the PDF in a viewer that is not your layout application and review every page at full size.
- In Acrobat Pro, open Output Preview and switch on the separations you expect. Switch off plates one at a time and look for objects that vanish unexpectedly.
- Turn on overprint preview. Black text set to overprint should still read normally. White objects set to overprint will disappear, which is a classic error.
- Show the TrimBox and BleedBox in the page display settings. Confirm that backgrounds and images extend to the bleed edge and that no important text lies within about 3 to 5 mm of the trim.
- Zoom to 400% on small text and thin lines. Check that reversed-out type on a dark background is not filled in.
- Compare page by page with the approved layout. Make sure nothing reflowed and the page order is right.
Record what you checked
Keep a short verification note beside the final file. It makes the handoff faster and gives you evidence if a dispute starts later. It can be a plain text file with these lines:
- The file name, the date, and the standard (for example PDF/X-4).
- The output intent name.
- Trim size, bleed, and page count.
- A statement that all fonts are embedded.
- The lowest effective image resolution found.
- Anything you intentionally left outside the spec, with the reason.
Common mistakes
- Verifying with the exporting application only. A preview inside the layout program reflects the layout file, not the PDF.
- Checking only page 1.
pdfinfo -boxwithout a page range reports the first page, and a mismatched later page goes unnoticed. - Trusting the file name. A file named
job_X4.pdfproves nothing. Check the metadata. - Re-saving the PDF afterwards. Opening and saving a PDF/X file in a general PDF editor can strip the conformance. Run the checks again after any edit.
- Skipping the checks on a "small change". A reprint with one corrected line deserves the same checks as the original job.
Exercise
You run pdffonts job.pdf and one row shows the font Garamond-Italic with emb set to no, and pdfinfo -box reports a BleedBox only 1 mm larger than the TrimBox on a job that needs 3 mm bleed. What do you do next, and which file do you change?
Show answer
Do not edit the exported PDF. Go back to the layout file. Fix the font (embed or replace it, and check why it was not embedded, for example a license restriction or a missing font file) and set the document bleed to 3 mm, making sure the artwork extends to it. Then re-export with the PDF/X preset and run the checks again from the start, because both changes can affect other results.
Exercise
gs -o - -sDEVICE=inkcov job.pdf shows non-zero cyan, magenta and yellow on a page that should be black only. Name two likely causes and one way to confirm.
Show answer
Likely causes are text or graphics set in a rich black or a four-color "black" instead of 100% K, and gray or black images that were saved as RGB or CMYK instead of grayscale and then converted. To confirm, open the page in Acrobat Pro's Output Preview, switch off the black plate and see which objects remain visible. Those objects contain color from the other plates.