IDML Reference
About this reference
What this independent IDML reference covers, how it is organized, how its examples are checked in InDesign and a renderer, and what its support badges mean.
Reviewed against engine v0.71.6
This is an independent reference for IDML, the InDesign Markup Language: what the format contains, how its parts fit together, and what InDesign does with them.
In short IDML is the form an InDesign document takes as a ZIP of readable XML parts. This reference explains that format from first principles, for people who read, write or transform IDML files. It is not the normative specification. Every rule it states comes from files we build ourselves and from what InDesign does when it opens them, and every example is a real package that both InDesign and an open renderer open.
What it covers
The subject is the format: the package, the parts, the elements and attributes, and the behaviour InDesign gives them. Pages are written in a neutral voice about the format.
Paged, an open-source engine that reads, renders and writes IDML, is the reference implementation the examples run on. Where it is useful to know what Paged does with a construct, a page says so in a short aside marked In Paged, usually with a support badge. Paged's own internals are documented on its own site, starting from how Paged reads IDML.
How the claims are checked
InDesign is the authority on behaviour. A rule like "a missing ItemTransform is not
read as identity" or "the font is a typed Properties child" is a measurement: a file was
built, opened in InDesign 20.0.1, and the result was read back. A tool's own round trip
cannot catch these: a reader and a writer can agree with each other and with nobody else.
The method is described in the clean-room protocol.
Every example is a real package. Snippets are never typed into a page. Each lives in
the documentation's examples/ folder as an unzipped package, and two checks run on it:
- The renderer gate, on every build. Each package is assembled and opened by
paged-inspect, built from the exact engine release the site pins. The page counts, stories, frames, paragraphs and runs must match what the example declares, or the build fails. - The InDesign check. Each package is opened in InDesign, which must open it with no missing font or link, save it back as IDML and export a PDF with the expected page count. The example then shows an InDesign tab with that output and the measured difference from Paged's render. Editing a package removes the tab until it is checked again.
Real documents set the priorities. The generated element reference counts how often each element and attribute appears across a census of 305 documents, so a page can tell a common construct from a rare one. How the census counts says what those numbers measure.
Reading a support badge
A badge reports what Paged does with a construct, read live from Paged's feature registry, and links to that feature's row in the capability matrix:
| Badge | Meaning |
|---|---|
| Supported · verified | Read and rendered, with passing tests |
| Supported · untested | Read and rendered, without a test that proves it |
| Parsed, partly rendered | Read, but only some of it affects the page |
| Parsed, not rendered | Read and kept, with no effect on the page |
| Planned | Not read yet |
A badge describes Paged, not the format. The format facts on a page hold for any reader.
How it is organized
Pages run from beginner to pro in the order a reader comes to understand the format, not in the order any other document lists things. Each page declares one tier and one job:
- Beginner (I): what is this thing?
- Intermediate (II): how do I work with it?
- Pro (III): how does it really work, and where are the edges?
Start here
- FoundationsBeginnerI· explanationwhat IDML is and how to read one by hand.
- Package anatomyBeginnerI· explanationwhat is inside the ZIP, and what InDesign needs to open it.
- Stories & textBeginnerI· explanationwhere the words live, and the paragraph model.
- Geometry & coordinatesIntermediateII· explanationand Layout model: where things sit on a spread.
- Element referenceProIII· referenceevery element, generated from real documents.
Frequently asked questions
What is this reference? An independent explanation of the IDML file format. Its rules come from files we build and from what InDesign does with them, and its examples are packages that both InDesign and an open renderer open.
Is this the official IDML specification? No. It is an explanatory reference written without copying the specification's wording or arrangement. Element and attribute names are facts of the format and are used as written.
How do I know an example is correct? Every example passes a renderer check on each build, and examples with an InDesign tab were opened, saved and exported by InDesign itself. The tab shows InDesign's output next to the measured difference from Paged's render.
Do I need Paged to use this reference? No. The format facts hold for any tool that reads or writes IDML. Paged appears only in the marked asides and the support badges.
Where should I start? If you are new to the format, read Foundations in order, then Package anatomy. If you write IDML from code, read What InDesign needs to open a file early.