In short
A printing press puts each ink on the paper separately, and those inks never land exactly on top of each other. Trapping makes two colours that touch overlap by a narrow strip. If a plate then shifts by a hair, you still see no white edge.
Why it exists
On an offset press, and on any press that prints several inks one after another, the plates never run perfectly in line. The PDF specification calls this misregistration: mechanical limits of the machine keep the colours from lining up exactly. In the pressroom it is called being out of register.
Normally an object cuts a hole in the colour underneath it. That is called knockout. If the object lands a fraction beside that hole, there is a strip along the edge where no ink lands at all. You see it as a white or brightly coloured edge.
For black text, overprint is the usual answer: no knockout, just print over it. But with two colours that must both stay clean, that fails, because they would mix. Then you make a trap: a narrow overlap only along the boundary, just wide enough to absorb the misregistration.
Where you meet it
Trapping happens in one of three places: in the application that creates the PDF, in an intermediate application that adds traps to an existing PDF, or in the RIP that produces the final output. That is how the PDF specification puts it. Enfocus names four: the source application, in the PDF, dedicated trapping tools and the RIP.
RIPs trap as well. Adobe's PostScript specification literally calls the chapter on it "In-RIP Trapping". And Datalogics, which licenses Adobe PDF Print Engine, lists multithreaded trapping for version 7.0.
With customers it usually comes back as a question: should I trap my file myself? The honest answer is: ask the printer. What is always required is that the file says whether it has been trapped. There is a flag for that, and in PDF/X it is mandatory.
How it works
A trap is a narrow strip along the boundary between two colours. The strip overprints, and according to the PDF specification its colour is close to one of the two adjoining colours. That way it does not stand out in the result, but it does cover the possible gap.
There are two directions. You make the object a fraction larger, so it falls over the background. Or you make the hole in the background a fraction smaller, so the background runs on under the object. Practitioners say spread and choke; the PDF/X standard lists those words as synonyms for trapping.
Which way? Adobe's PostScript specification gives the normal rule: the lighter colour spreads a little into the darker one. If everything is in register, that strip disappears against the darker colour and you do not see it. If a colour borders on black, the colour always spreads towards the black, so the black stays the visible edge. If a rich black, with support colours under it, borders on paper or on a colour without those support colours, the reverse happens: the support colours are choked back a little from the edge.
How wide the strip becomes is a setting of the trapping software. The PostScript specification gives no default value for it, only the unit (1/72 inch) and the requirement that the width is greater than zero. PDF itself does not record the settings; according to the PDF specification they belong in a job ticket with the file, JDF for example.
If trapping is done before the file goes into the RIP, the specification puts the traps in a separate layer of the PDF: one trap network annotation per page.
Technical
The Trapped flag
The document information dictionary holds the key Trapped, since PDF 1.3. It is a name, not a boolean: /True and not true.
| Value | Meaning according to ISO 32000-1 | Status |
|---|---|---|
True | fully trapped, no further trapping needed | verified |
False | not yet trapped | verified |
Unknown | unknown, or partly trapped; this is the default value | verified |
What PDF/X requires
| Rule | PDF/X-1a:2003 | PDF/X-4 | Status |
|---|---|---|---|
| Where the flag lives | Trapped in the Info dictionary | pdf:Trapped in the XMP metadata | verified |
| Allowed values | True or False | True or False | verified |
| Partly trapped | not permitted | not permitted | verified |
| Trap network present | flag must be True | flag must be True | verified |
FontFauxing in the trap network | absent or empty array | absent or empty array | verified |
PCM in the appearance | DeviceCMYK | equal to the colour space of the output intent | verified |
| Optional content | n/a | the flag covers all combinations intended for print | verified |
The trap network annotation
Traps made before the RIP are stored as a form XObject in an annotation with subtype TrapNet, since PDF 1.3. There is at most one per page, and it is the last entry in the Annots array. Several trap networks for different output devices sit together in the N part of the appearance dictionary.
The annotation tracks whether it is still valid, with a Version array or with LastModified. If the page is edited afterwards, the trap network is no longer valid. That is a good reason not to touch a trapped file by hand.
In JDF and XJDF
XJDF 2.2 has a process Trapping (section 5.4.23). The specification says trapping may happen on PDL data, on a display list or on raster data. The settings live in the resource TrappingParams (section 6.91), which may differ per separation through @Separation. There is no attribute for the direction; that follows from the rules of the trapping software.
| Attribute | Type | What it does | Status |
|---|---|---|---|
TrapWidth | XYPair | width of the trap in X and Y direction | verified |
MinimumBlackWidth | float | minimum width in points of a trap that uses black ink | verified |
StepLimit | float | smallest colour difference that triggers a trap; a difference below 0.05 never traps | verified |
TrapColorScaling | float, 0 to 1 | how much colour the trap gets, towards the density of the dark area | verified |
ImageToObjectTrapping, ImageToImageTrapping, ImageInternalTrapping, ImageMaskTrapping | boolean | whether images are trapped against objects, against each other, internally and with stencil masks | verified |
In our tooling
PitStop has the check Trapnet annotation (PDF/X) in the PDF standards category. It has no fix of its own. If you select the PDF/X Compliancy check with the fix Make PDF/X compliant, you switch on the fix for the Trapped flag there.
To set the flag yourself there are three routes: in a preflight profile the Trapnet annotation check in the Document category, with the fix Change trapped flag to; an action list with the action Change trapped flag; or the Enfocus Navigator. Whether PitStop creates traps itself is not stated in the sources we read.
Related terms
- Overprint: a trap overprints; for black text overprint is the simpler solution.
- PDF/X: makes the Trapped flag mandatory and prohibits Unknown.
- RIP: one of the three places where trapping happens.
- Registration: the alignment of the colours, whose errors trapping absorbs.
- Knockout: the hole in the lower colour that becomes visible without a trap.
Sources
- ISO 32000-1:2008 (PDF 1.7), 14.11.6 "Trapping Support" and 12.5.6.21 "Trap Network Annotations": why trapping exists, where it happens, the trapping instructions in a job ticket, and the structure of the trap network. Consulted 2026-09-28. verified
- ISO 32000-1:2008, table of the document information dictionary: the key
Trappedwith True, False and Unknown. Same copy. Consulted 2026-09-28. verified - NEN-ISO 15930-4:2004 (PDF/X-1a:2003), 3.28 definition of trapping, 5 EXAMPLE 1 (with True, ignore trapping information from a job ticket) and 6.6 "Trapping". Consulted 2026-09-28. verified
- NEN-ISO 15930-7:2010 (PDF/X-4), 3.27 definition of trapping, 5 EXAMPLE 1 and 6.9 "Trapping". Consulted 2026-09-28. verified
- Enfocus, Trapnet annotation (PDF/X), PitStop Preflight Checks (external link). Where trapping happens, the trap network, and the fix via Make PDF/X compliant. Consulted 2026-09-28. verified
- Enfocus, Document trapped flag is Unknown/False/True, PitStop Preflight Report Help (external link). The meaning of True, and the three ways to set the flag. Consulted 2026-09-28. verified
- Datalogics, Adobe PDF Print Engine (external link). Multithreaded trapping among the performance improvements in version 7.0. Consulted 2026-09-28. verified
- CIP4, XJDF Specification 2.2 (external link) (May 2024), 5.4.23 Trapping and 6.91 TrappingParams, table 6.176. Consulted 2026-09-29. verified
- Adobe, PostScript Language Reference, third edition (external link) (1999), 6.3 "In-RIP Trapping": the normal trapping rule, the black trapping rule, the reverse trap with rich black, and table 6.13 with
TrapWidth. Consulted 2026-09-29. verified
Last updated · checked by GrafiStore
Back to the glossary