Skip to content
Glossary · Files and prepress

Trapping

Dutch: Trapping / overvulling

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.

The same object on a colour area three times: as intended, shifted without trap, and shifted with trap1 · as intendedthe plates line upexactly2 · shifted, no trapalong two edgesthe paper shows through3 · shifted, with trapthe trap covers the gapand overprints
A colour area with an object inside it. On the left, as intended. In the middle, the plate of the object has shifted by a fraction, and the paper shows along two edges. On the right, the same shift with a trap: a narrow strip along the edge that covers the gap. The trap is drawn dark here to make it visible; in print its colour is close to one of the two neighbours.

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.

Do not trap twice. A file that has already been trapped and is trapped again in the RIP gets a second layer of overlaps on top. That is why the flag matters. In PDF/X: if it is True, a conforming PDF/X reader is required to ignore trapping instructions from an embedded job ticket. If it is False, the receiver may trap it. Unknown leaves the question open and is prohibited in PDF/X.
True does not always mean there are traps inside. Enfocus explains the value True as: the document has been trapped, or the creator decided it should not be trapped. A file with True and no traps is therefore not necessarily wrong. Ask the creator what was meant. And watch the English: the PDF/X standard warns that trapping is not the same as ink trapping.

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.

ValueMeaning according to ISO 32000-1Status
Truefully trapped, no further trapping neededverified
Falsenot yet trappedverified
Unknownunknown, or partly trapped; this is the default valueverified

What PDF/X requires

RulePDF/X-1a:2003PDF/X-4Status
Where the flag livesTrapped in the Info dictionarypdf:Trapped in the XMP metadataverified
Allowed valuesTrue or FalseTrue or Falseverified
Partly trappednot permittednot permittedverified
Trap network presentflag must be Trueflag must be Trueverified
FontFauxing in the trap networkabsent or empty arrayabsent or empty arrayverified
PCM in the appearanceDeviceCMYKequal to the colour space of the output intentverified
Optional contentn/athe flag covers all combinations intended for printverified

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.

AttributeTypeWhat it doesStatus
TrapWidthXYPairwidth of the trap in X and Y directionverified
MinimumBlackWidthfloatminimum width in points of a trap that uses black inkverified
StepLimitfloatsmallest colour difference that triggers a trap; a difference below 0.05 never trapsverified
TrapColorScalingfloat, 0 to 1how much colour the trap gets, towards the density of the dark areaverified
ImageToObjectTrapping, ImageToImageTrapping, ImageInternalTrapping, ImageMaskTrappingbooleanwhether images are trapped against objects, against each other, internally and with stencil masksverified

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.

  • 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

Last updated · checked by GrafiStore

Back to the glossary

Never miss an update?

Get the latest tips on workflow automation straight to your inbox.

By subscribing you agree to our privacy policy.