<Story> / Element reference
Story
The Story element in IDML: where it appears (Stories), its 10 attributes, their values, and how real documents use them.
Definition
A flow of text, independent of the frame(s) that pour it. Edited by character offset, not by frame.
- Lives in
Stories121- Frequency
- In 121 of the 305 documents of the census (39.7%), 2026-10-12
- Attributes
- 10 observed, 3 of them vary between documents
- Discussed in
- Content parts, Table of contents, Your first story, Build a table in a story, How the parts reference each other and Story structure
Structure
Relationships
Story 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 |
|---|---|---|---|
| Self# The object's ID, unique within the document. An attribute that refers to this object holds this value. | id | any | 100% varies in 121 |
| AppliedNamedGrid# The named grid applied, by its Self: a NamedGrid holding CJK frame-grid settings. n means none. | — | any | 75.2% |
| AppliedTOCStyle# The TOC style this story was generated from, by Self; n for an ordinary story. | reference | any | 75.2% varies in 1 |
| StoryTitle# | builtin | any | 75.2% |
| TrackChanges# When true, edits to the story are recorded as tracked changes. | boolean | false91 | 75.2% |
| UserText# | boolean | any | 70.2% |
| IsEndnoteStory# | boolean | any | 69.4% |
| ECAppliedRuleSetsData# | — | any | 0.8% |
| LinkResourceId# | integer | any | 0.8% varies in 1 |
| StoryDirection# | keyword | any | 0.8% |
Story (census of 2026-10-12, 305 documents). Seen in is the share of the 121 documents with a Story 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.Visualization

Story in the example “Paragraph marks, a forced line break and a style run”, page 1, as InDesign 20.0.1.32 exports it (checked 2026-10-11). The example, with its source, is in Read one by hand.Behavior
Three paragraphs in two ParagraphStyleRanges: <Br/> ends a paragraph, a U+2028 forced line break does not, and a new range starts only where paragraph attributes change.
Shown, with its source and a live render, in Read one by hand.
A ParagraphStyleRange is a style run, not a paragraph: the <Br/> character ends a paragraph, so two paragraphs can share one range.
Shown, with its source and a live render, in Your first story.
A one-page template whose frames carry a Name: a text frame 'headline' pointing at its story, and an empty graphic frame 'photo' (ContentType=GraphicType) waiting for an <Image>.
Shown, with its source and a live render, in Swap text and images in a template.
Evidence
- Observed
- In 121 of 305 documents (39.7%):
Stories121. - 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.
- InDesign checks
- Paragraph marks, a forced line break and a style run: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
- Two paragraphs in one story: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
- A template with a named text slot and a named image slot: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
Paged support
What Paged, one implementation of the format, does with Story. 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 3 of the 10 attributes
- Render
- 2 features of the capability record name this element (below); examples compared with InDesign below
- Edit
- No attribute maps to a scriptable path
- Write
- Writes 3 of the 10 attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| Self | not read | — | writesemit.rs:132 |
| AppliedNamedGrid | not read | — | not written |
| AppliedTOCStyle | readsstory.rs:733 | — | writesemit.rs:134 |
| StoryTitle | not read | — | not written |
| TrackChanges | not read | — | not written |
| UserText | not read | — | not written |
| IsEndnoteStory | readsstory.rs:737 | — | writesemit.rs:139 |
| ECAppliedRuleSetsData | not read | — | not written |
| LinkResourceId | not read | — | not written |
| StoryDirection | readsstory.rs:729 | — | not written |
In the capability record
| Feature | Parse | Render | Edit | Evidence |
|---|---|---|---|---|
| Story parts (ParagraphStyleRange / CharacterStyleRange trees) shipped | yes | — | — | All linked evidence is passing (6 tests current) |
| Story model (paragraph/character run trees) shipped | yes | yes | — | All linked evidence is passing (3 tests current) |
Rendered against InDesign
- Paragraph marks, a forced line break and a style run: mean colour difference 0.018 ΔE, structural similarity 1, same fonts on both sides (checked 2026-10-11).
- Two paragraphs in one story: mean colour difference 0.009 ΔE, structural similarity 1, same fonts on both sides (checked 2026-10-11).
- A template with a named text slot and a named image slot: mean colour difference 0.923 ΔE, structural similarity 0.997, same fonts on both sides (checked 2026-10-11).
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 Story.