<ViewPreference> / Element reference
ViewPreference
The ViewPreference element in IDML: where it appears (Resources/Preferences), its 17 attributes, their values, and how real documents use them.
Definition
On-screen view settings: measurement units, rulers, frame edges and keyboard increments. They do not change the page.
- Lives in
Resources/Preferences271- Frequency
- In 271 of the 305 documents of the census (88.9%), 2026-10-12
- Attributes
- 17 observed, 10 of them vary between documents
Structure
Relationships
ViewPreference 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 |
|---|---|---|---|
| CursorKeyIncrement# How far an arrow key moves a selected object. | integer or real | any | 100% varies in 97 |
| GuideSnaptoZone# How close, in screen pixels, an object must come to a guide or grid to snap to it. | integer | any | 100% |
| HorizontalCustomPoints# The ruler increment, in points, when the horizontal unit is Custom. | integer | any | 100% |
| HorizontalMeasurementUnits# The unit of the horizontal ruler and of horizontal values in InDesign's panels, such as Millimeters; the file itself stores points. | keyword | Millimeters138Points61Pixels34Inches30Centimeters6 | 100% varies in 133 |
| LineMeasurementUnits# | keyword | Points268Millimeters3 | 100% varies in 3 |
| PointsPerInch# The number of points per inch used for unit conversion, normally 72. | integer or real | any | 100% varies in 2 |
| PrintDialogMeasurementUnits# The unit the Print dialog shows its values in. | keyword | Millimeters174Inches97 | 100% varies in 97 |
| RulerOrigin# Where the rulers' zero point is: per spread ( SpreadOrigin), per page or at the spine. | keyword | SpreadOrigin271 | 100% |
| ShowFrameEdges# Whether frame edges are shown on screen. | boolean | true243false28 | 100% varies in 28 |
| ShowNotes# Whether editorial notes are shown in the text. | boolean | true270 | 100% varies in 1 |
| ShowRulers# Whether the rulers are shown. | boolean | true254false17 | 100% varies in 17 |
| TextSizeMeasurementUnits# The unit InDesign shows type sizes in, such as Points. | keyword | Points271 | 100% |
| TypographicMeasurementUnits# | keyword | Points271 | 100% |
| VerticalCustomPoints# The ruler increment, in points, when the vertical unit is Custom. | integer | any | 100% |
| VerticalMeasurementUnits# The unit of the vertical ruler and of vertical values in InDesign's panels, such as Millimeters; the file itself stores points. | keyword | Millimeters139Points61Pixels34Inches29Centimeters6 | 100% varies in 132 |
| StrokeMeasurementUnits# The unit InDesign shows stroke weights in, such as Points. | keyword | Points267Millimeters3 | 99.6% varies in 3 |
| ShowTextThreads# Whether the threads between linked text frames are shown on screen. | boolean | any | 0.4% |
ViewPreference (census of 2026-10-12, 305 documents). Seen in is the share of the 271 documents with a ViewPreference 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/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 ViewPreference. 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 |
|---|---|---|---|
| CursorKeyIncrement | not read | — | not written |
| GuideSnaptoZone | not read | — | not written |
| HorizontalCustomPoints | not read | — | not written |
| HorizontalMeasurementUnits | not read | — | not written |
| LineMeasurementUnits | not read | — | not written |
| PointsPerInch | not read | — | not written |
| PrintDialogMeasurementUnits | not read | — | not written |
| RulerOrigin | not read | — | not written |
| ShowFrameEdges | not read | — | not written |
| ShowNotes | not read | — | not written |
| ShowRulers | not read | — | not written |
| TextSizeMeasurementUnits | not read | — | not written |
| TypographicMeasurementUnits | not read | — | not written |
| VerticalCustomPoints | not read | — | not written |
| VerticalMeasurementUnits | not read | — | not written |
| StrokeMeasurementUnits | not read | — | not written |
| ShowTextThreads | 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 ViewPreference.
TransparencySetting
The TransparencySetting element in IDML: where it appears (Resources/Preferences), its 0 attributes, their values, and how real documents use them.
XMLExportPreference
The XMLExportPreference element in IDML: where it appears (Resources/Preferences), its 18 attributes, their values, and how real documents use them.