IDML Reference
Stories & text
In IDML, a document's text lives in stories — streams of characters under runs of shared formatting, shown by frames that can thread across pages.
Reviewed against engine v0.71.6
In IDML, all of a document's text lives in stories, separate from the frames that show it.
In short A story is IDML's container for one stream of text. The characters are
grouped into runs of shared formatting: ParagraphStyleRange elements for paragraph
formatting and, inside them, CharacterStyleRange elements for character formatting.
Paragraphs are not elements; each one ends with a <Br/> mark in the text. Frames on
pages display a story rather than containing it, so one story can thread through
several frames, and text that doesn't fit is overset. This section explains how a story
is built, how it flows, and how to read its text back out.
- Your first storyBeginnerI· tutorialOne line, a second paragraph, a change of formatting.
- Story structureProIII· referenceThe elements, the characters that end paragraphs and break lines, and what else a story holds.
- The paragraph modelProIII· explanationWhy IDML stores style runs and a paragraph mark instead of paragraph elements.
- Threading and oversetProIII· explanationHow one story flows across frames, and what happens to text that doesn't fit.
- Extract all textIntermediateII· how-toWalk every story and rebuild its paragraphs as plain text.
Page numbers, section markers and text variables are covered in sections, numbering & variables.
Frequently asked questions
What is a story in IDML?
A story is IDML's container for one stream of text. It lives in its own
Stories/Story_*.xml part and is referenced by the frames that display it, rather than
living inside any one frame.
How is the text in a story structured?
As two layers of runs over the characters: ParagraphStyleRange elements for stretches
that share paragraph formatting, CharacterStyleRange elements inside them for stretches
that share character formatting, and the characters in Content. A <Br/> in the text
ends each paragraph except the last. See story structure.
Can one story appear in more than one frame? Yes. A story can thread through a chain of frames, filling them in order; text that still doesn't fit at the end of the chain is overset. See threading and overset.
Visibility and printing
When an IDML page item is drawn and printed — the layer's Visible and Printable, the item's own Visible and Nonprinting, and why Locked changes nothing.
Your first story
Build up an IDML story in three steps — one line of text, a second paragraph with the <Br/> mark, then a change of formatting with a new range.