<TrapPreset> / Element reference
TrapPreset
The TrapPreset element in IDML: where it appears (Resources/Styles), its 16 attributes, their values, and how real documents use them.
Definition
A trapping preset: trap widths, thresholds, and how traps are drawn at joins, at ends and around images.
- Lives in
Resources/Styles271- Frequency
- In 271 of the 305 documents of the census (88.9%), 2026-10-12
- Attributes
- 16 observed, 2 of them vary between documents
Structure
Relationships
TrapPreset sits: the elements that hold it, and the elements it holds. Each number is the documents that show the pairing (census of 2026-10-12, 305 documents).Attributes
| Attribute | Type | Values | Seen in |
|---|---|---|---|
| BlackColorThreshold# The black-ink percentage from which a colour counts as black for trapping. | integer | any | 100% |
| BlackDensity# The neutral density from which an ink counts as black for trapping. | real | any | 100% |
| BlackWidth# The trap width where colours meet solid black, in points. | real | any | 100% |
| ColorReduction# | integer | any | 100% |
| DefaultTrapWidth# The trap width for colours other than black, in points. | real | any | 100% |
| ImagePlacement# Where a trap between an image and an object sits, such as CenterEdges. | keyword | CenterEdges271 | 100% |
| ImagesToImages# Whether overlapping or abutting images are trapped to each other. | boolean | true271 | 100% |
| InternalImages# Whether colours inside an image are trapped to each other. | boolean | false271 | 100% |
| Name# The name InDesign shows for the object in its panels. References between objects use Self, never the name. | builtin | any | 100% varies in 271 |
| ObjectsToImages# Whether objects are trapped to images. | boolean | true271 | 100% |
| OneBitImages# Whether 1-bit images are trapped to the objects around them. | boolean | true271 | 100% |
| Self# The object's ID, unique within the document. An attribute that refers to this object holds this value. | reference to TrapPreset | any | 100% varies in 271 |
| SlidingTrapThreshold# | integer | any | 100% |
| StepThreshold# How far two colours' inks must differ, as a percentage, before a trap is made. | integer | any | 100% |
| TrapEnd# How traps end where three objects meet: MiterTrapEnds or OverlapTrapEnds. | keyword | MiterTrapEnds271 | 100% |
| TrapJoin# How the outer corners of traps are joined: MiterEndJoin, RoundEndJoin or BevelEndJoin. | keyword | MiterEndJoin271 | 100% |
TrapPreset (census of 2026-10-12, 305 documents). Seen in is the share of the 271 documents with a TrapPreset that set the attribute; varies in counts those that hold a value other than the most common one. Values are listed, with the documents using each, only where documents use a small closed set. A name with a dotted underline links to the chapter that explains it. How the census counts.Evidence
- Observed
- In 271 of 305 documents (88.9%):
Resources/Styles271. - Census
- Taken 2026-10-12 over 305 documents (34 written by test generators, 267 from template packs, 4 samples). It observed 281 elements; this reference gives 195 of them an entry. How the census counts
- Counts are
- Documents, not occurrences. Values are published only for small closed sets; numbers only by kind.
Paged support
What Paged, one implementation of the format, does with TrapPreset. Nothing in this panel is part of the format; the reference above holds for any reader.
As of: scriptable paths from engine release v0.77.0; parse and write from the importer and exporter at paged b6f499b, read 2026-11-30; render from the capability record exported 2026-11-29.
- Parse
- Does not read this element yet
- Render
- No feature of the capability record names this element
- Edit
- No attribute maps to a scriptable path
- Write
- Writes none of its attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| BlackColorThreshold | not read | — | not written |
| BlackDensity | not read | — | not written |
| BlackWidth | not read | — | not written |
| ColorReduction | not read | — | not written |
| DefaultTrapWidth | not read | — | not written |
| ImagePlacement | not read | — | not written |
| ImagesToImages | not read | — | not written |
| InternalImages | not read | — | not written |
| Name | not read | — | not written |
| ObjectsToImages | not read | — | not written |
| OneBitImages | not read | — | not written |
| Self | not read | — | not written |
| SlidingTrapThreshold | not read | — | not written |
| StepThreshold | not read | — | not written |
| TrapEnd | not read | — | not written |
| TrapJoin | not read | — | not written |
Parse and write come from the idml-coverage record, which reads the importer and exporter source; each mark links to the line. Render is recorded per feature, not per attribute. A feature is listed when its title in the record names TrapPreset.
TransformAttributeOption
The TransformAttributeOption element in IDML: where it appears (Resources/Styles), its 3 attributes, their values, and how real documents use them.
WavyStrokeStyle
The WavyStrokeStyle element in IDML: where it appears (Resources/Styles), its 4 attributes, their values, and how real documents use them.