<MarginPreference> / Element reference
MarginPreference
The MarginPreference element in IDML: where it appears (Spreads), its 8 attributes, their values, and how real documents use them.
Definition
A page's margins and column grid; in the preferences, the margins and columns new pages get.
- Lives in
Spreads273,MasterSpreads271 andResources/Preferences271- Frequency
- In 273 of the 305 documents of the census (89.5%), 2026-10-12
- Attributes
- 8 observed, 7 of them vary between documents
- Discussed in
- Content parts, Resource parts and Spreads and pages
Structure
Relationships
MarginPreference 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 |
|---|---|---|---|---|
| Bottom# The page's bottom margin, in points. | integer or real (pt) | 0 or more | 36 | 100% varies in 238 |
| ColumnCount# The number of columns the margin box is divided into; columns guide layout and clip nothing. | integer (count) | 1 to 216 | 1 | 100% varies in 38 |
| ColumnGutter# The space between the page's columns, in points. | integer or real (pt) | 0 or more | 12 | 100% varies in 45 |
| Left# The left margin, in points. | integer or real (pt) | 0 or more | 36 | 100% varies in 242 |
| Right# | integer or real (pt) | 0 or more | 36 | 100% varies in 240 |
| Top# The page's top margin, in points. | integer or real (pt) | 0 or more | 36 | 100% varies in 239 |
| ColumnDirection# | keyword | Horizontal271 | — | 99.3% |
| ColumnsPositions# | list of numbers | any | — | 99.3% varies in 265 |
MarginPreference (census of 2026-10-12, 305 documents). Seen in is the share of the 273 documents with a MarginPreference 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 273 of 305 documents (89.5%):
Spreads273,MasterSpreads271 andResources/Preferences271. - 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 MarginPreference. 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 6 of the 8 attributes
- Render
- No feature of the capability record names this element
- Edit
- 6 attributes map to a scriptable path for
paged.set - Write
- Writes none of its attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| Bottom | readsspread.rs:1238 | pageMarginBottom | not written |
| ColumnCount | readsspread.rs:1241 | pageColumnCount | not written |
| ColumnGutter | readsspread.rs:1244 | pageColumnGutter | not written |
| Left | readsspread.rs:1239 | pageMarginLeft | not written |
| Right | readsspread.rs:1240 | pageMarginRight | not written |
| Top | readsspread.rs:1237 | pageMarginTop | not written |
| ColumnDirection | not read | — | not written |
| ColumnsPositions | 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 MarginPreference.