<HTMLExportPreference> / Element reference
HTMLExportPreference
The HTMLExportPreference element in IDML: where it appears (Resources/Preferences), its 39 attributes, their values, and how real documents use them.
Definition
Settings for exporting the document as HTML. They configure the export and do not change the page.
- Lives in
Resources/Preferences270- Frequency
- In 270 of the 305 documents of the census (88.5%), 2026-10-12
- Attributes
- 39 observed
Structure
Relationships
HTMLExportPreference 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 |
|---|---|---|---|
| ApplyImageAlignmentToAnchoredObjectSettings# | boolean | true270 | 100% |
| BottomMargin# | integer | any | 100% |
| BulletExportOption# How bulleted lists export: as HTML lists ( UnorderedList) or converted to text. | keyword | UnorderedList270 | 100% |
| CSSExportOption# | keyword | EmbeddedCSS270 | 100% |
| CustomImageSizeOption# How exported images are sized: fixed ( SizeFixed) or relative to the page width (SizeRelativeToPageWidth). | keyword | SizeFixed270 | 100% |
| ExportOrder# The order content is exported in: the layout's ( LayoutOrder), the XML structure's, or the Articles panel's. | keyword | LayoutOrder270 | 100% |
| ExportSelection# Whether only the selection is exported. | boolean | false270 | 100% |
| ExternalCSSPath# | builtin | any | 100% |
| ExternalStyleSheets# Additional CSS files linked into the exported HTML or EPUB. | — | any | 100% |
| GIFOptionsInterlaced# Whether images exported as GIF are interlaced, so they load progressively. | boolean | false270 | 100% |
| GIFOptionsPalette# The colour palette for images exported as GIF, such as AdaptivePalette. | keyword | AdaptivePalette270 | 100% |
| IgnoreObjectConversionSettings# Whether objects' own export options ( ObjectExportOption) are ignored on export. | boolean | false270 | 100% |
| ImageAlignment# How exported images are aligned: AlignLeft, AlignCenter or AlignRight. | keyword | AlignCenter270 | 100% |
| ImageConversion# The format images are converted to on export: Automatic lets InDesign choose, or JPEG, GIF or PNG. | keyword | Automatic270 | 100% |
| ImageExportOption# | keyword | OptimizedImage270 | 100% |
| ImageExportResolution# The resolution of exported images, such as Ppi150 for 150 ppi. | keyword | Ppi150270 | 100% |
| ImageExtension# | text | any | 100% |
| ImageSpaceAfter# Space added below exported images, in the unit set by SpaceUnit. | integer | any | 100% |
| ImageSpaceBefore# Space added above exported images, in the unit set by SpaceUnit. | integer | any | 100% |
| IncludeCSSDefinition# | boolean | true270 | 100% |
| Javascripts# JavaScript files added to the exported HTML or EPUB. | — | any | 100% |
| JavascriptURL# | builtin | any | 100% |
| JPEGOptionsFormat# The encoding of images exported as JPEG: BaselineEncoding or ProgressiveEncoding. | keyword | ProgressiveEncoding270 | 100% |
| JPEGOptionsQuality# The quality of images exported as JPEG, such as Medium or High. | keyword | High270 | 100% |
| LeftMargin# | integer | any | 100% |
| Level# | integer | any | 100% |
| LinkToJavascript# | boolean | true270 | 100% |
| MarginUnit# | keyword | CssPixel270 | 100% |
| NumberedListExportOption# How numbered lists export: as HTML lists ( OrderedList) or converted to text. | keyword | OrderedList270 | 100% |
| PreserveLayoutAppearence# | boolean | false270 | 100% |
| PreserveLocalOverride# | boolean | true270 | 100% |
| RightMargin# | integer | any | 100% |
| ServerPath# | — | any | 100% |
| SpaceUnit# The unit of ImageSpaceBefore and ImageSpaceAfter, such as CssPixel. | keyword | CssPixel270 | 100% |
| TopMargin# | integer | any | 100% |
| ViewDocumentAfterExport# Whether the export is opened for viewing when it is done. | boolean | true270 | 100% |
| GenerateCascadeStyleSheet# Whether a CSS style sheet is generated on export. | boolean | true266 | 98.5% |
| IncludeClassesInHTML# Whether style class names are written into the exported HTML. | boolean | true84 | 31.1% |
| UseSVGAs# | keyword | EmbedCode74 | 27.4% |
HTMLExportPreference (census of 2026-10-12, 305 documents). Seen in is the share of the 270 documents with a HTMLExportPreference 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 270 of 305 documents (88.5%):
Resources/Preferences270. - 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 HTMLExportPreference. 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 |
|---|---|---|---|
| ApplyImageAlignmentToAnchoredObjectSettings | not read | — | not written |
| BottomMargin | not read | — | not written |
| BulletExportOption | not read | — | not written |
| CSSExportOption | not read | — | not written |
| CustomImageSizeOption | not read | — | not written |
| ExportOrder | not read | — | not written |
| ExportSelection | not read | — | not written |
| ExternalCSSPath | not read | — | not written |
| ExternalStyleSheets | not read | — | not written |
| GIFOptionsInterlaced | not read | — | not written |
| GIFOptionsPalette | not read | — | not written |
| IgnoreObjectConversionSettings | not read | — | not written |
| ImageAlignment | not read | — | not written |
| ImageConversion | not read | — | not written |
| ImageExportOption | not read | — | not written |
| ImageExportResolution | not read | — | not written |
| ImageExtension | not read | — | not written |
| ImageSpaceAfter | not read | — | not written |
| ImageSpaceBefore | not read | — | not written |
| IncludeCSSDefinition | not read | — | not written |
| Javascripts | not read | — | not written |
| JavascriptURL | not read | — | not written |
| JPEGOptionsFormat | not read | — | not written |
| JPEGOptionsQuality | not read | — | not written |
| LeftMargin | not read | — | not written |
| Level | not read | — | not written |
| LinkToJavascript | not read | — | not written |
| MarginUnit | not read | — | not written |
| NumberedListExportOption | not read | — | not written |
| PreserveLayoutAppearence | not read | — | not written |
| PreserveLocalOverride | not read | — | not written |
| RightMargin | not read | — | not written |
| ServerPath | not read | — | not written |
| SpaceUnit | not read | — | not written |
| TopMargin | not read | — | not written |
| ViewDocumentAfterExport | not read | — | not written |
| GenerateCascadeStyleSheet | not read | — | not written |
| IncludeClassesInHTML | not read | — | not written |
| UseSVGAs | 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 HTMLExportPreference.
GuidePreference
The GuidePreference element in IDML: where it appears (Resources/Preferences), its 6 attributes, their values, and how real documents use them.
idPkg:Preferences
The idPkg:Preferences element in IDML: where it appears (Resources/Preferences), its 2 attributes, their values, and how real documents use them.