<TextWrapPreference> / Element reference
TextWrapPreference
The TextWrapPreference element in IDML: where it appears (Resources/Preferences), its 6 attributes, their values, and how real documents use them.
Definition
How text wraps around an object: the wrap mode, the offsets and, for a contour wrap, a ContourOption.
- Lives in
Resources/Preferences271,Resources/Styles271,MasterSpreads231,Spreads94 andStories3- Frequency
- In 274 of the 305 documents of the census (89.8%), 2026-10-12
- Attributes
- 6 observed, 3 of them vary between documents
- Discussed in
- Inline vs anchored positioning, Anchored objects, Object styles and Placed images
Structure
Relationships
Inside
ObjectStyle271idPkg:Preferences271Polygon262Rectangle254Group225TextFrame93GraphicLine79Oval65- and 4 more
Contains
Properties274ContourOption271
TextWrapPreference 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 | Default | Seen in |
|---|---|---|---|---|
| ApplyToMasterPageOnly# On a master page item: when true, its wrap pushes text only on the master itself, not on the pages that use the master. | boolean | false274 | — | 100% |
| Inverse# When true, text flows inside the wrap shape instead of around it. | boolean | false274 | false | 100% |
| TextWrapMode# How text wraps around the object: None, BoundingBoxTextWrap, Contour (around its shape), JumpObjectTextWrap (skips past it) or NextColumnTextWrap. | keyword | None272BoundingBoxTextWrap12Contour5JumpObjectTextWrapNextColumnTextWrap or a named value | None | 100% varies in 17 |
| TextWrapOffset a child of Properties #How far text is held off the object on each side, in points: a typed <Properties> child with Top, Left, Bottom and Right attributes. | untyped | any | — | 100% varies in 16 |
| TextWrapSide# Which sides of the object text flows along: BothSides (the value in every surveyed file), one chosen side, or the side with the largest area. | keyword | BothSides273 | — | 99.6% varies in 3 |
| PathGeometry a child of Properties #The object's outline, in a <Properties> child: one path per contour, each a list of anchor points in the object's own coordinates. | untyped | any | — | 0.4% |
TextWrapPreference (census of 2026-10-12, 305 documents). Seen in is the share of the 274 documents with a TextWrapPreference 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 274 of 305 documents (89.8%):
Resources/Preferences271,Resources/Styles271,MasterSpreads231,Spreads94 andStories3. - 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 TextWrapPreference. 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
- Reads 4 of the 6 attributes
- Render
- No feature of the capability record names this element
- Edit
- 2 attributes map to a scriptable path for
paged.set - Write
- Writes 4 of the 6 attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| ApplyToMasterPageOnly | readsspread.rs:1948 | — | writestext_wrap.rs:128 |
| Inverse | readsspread.rs:1941 | frameTextWrapInvert | writestext_wrap.rs:126 |
| TextWrapMode | readsspread.rs:1937 | frameTextWrapMode | writestext_wrap.rs:135 |
| TextWrapOffset | not read | — | not written |
| TextWrapSide | readsspread.rs:1944 | — | writestext_wrap.rs:132 |
| PathGeometry | 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 TextWrapPreference.
TextPreference
The TextPreference element in IDML: where it appears (Resources/Preferences), its 34 attributes, their values, and how real documents use them.
TinDocumentDataObject
The TinDocumentDataObject element in IDML: where it appears (Resources/Preferences), its 1 attribute, their values, and how real documents use them.