InDesign Server2025
API 20.5.0.49
Object

HTMLExportPreference

HTML export preferences.

Preference HTMLExportPreference
Hierarchy

Document

HTMLExportPreference

Properties

NameType AccessDescription
BulletListExportOption
read/write The bullet export option.
ImageSizeOption
read/write Allows user to select the image size option for conversion
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
ExportOrder
read/write The export order.
Boolean read/write If true and have selection, export selected content to HTML.
String[] read/write The file path of external cascading style sheets.
Boolean read/write If true, InDesign will generate cascade style sheet.
Boolean read/write If true, generates interlaced GIFs. Note: Not valid when image conversion is JPEG.
GIFOptionsPalette
read/write The color palette for GIF conversion. Note: Not valid when image conversion is JPEG.
Boolean read/write ignore object level image conversion settings.
ImageAlignmentType
read/write Alignment applied to images
ImageConversion
read/write The file format to use for converted images. Note: Valid only when copy optimized images and/or copy formatted images is true.
ImageExportOption
read/write The export order.
ImageResolution
read/write The export resolution
String read/write The image extension on server.
Number 0–8640 read/write Space After applied to images
Number 0–8640 read/write Space Before applied to images
Boolean read/write If true, InDesign will generate class attributes for elements in HTML, else will generate plain html without class attributes.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String[] read/write The file path of external javascripts.
JPEGOptionsFormat
read/write The formatting method for converted JPEG images. Note: Not valid when image conversion is GIF.
JPEGOptionsQuality
read/write The quality of converted JPEG images. Note: Not valid when image conversion is GIF.
Number read/write The PNG compression level.
NumberedListExportOption
read/write The numbered list export option.
Document readonly The parent of the HTMLExportPreference (a Document).
Boolean read/write If true, format image based on layout appearence.
Boolean read/write If true, output local style override.
Object read/write A property that allows setting of several properties at the same time.
String read/write The server path for image .
UseSVGAsEnum
read/write Use SVG As
Boolean read/write If true, open docuemnt in viewer after export.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
HTMLExportPreference[]

Resolves the object specifier, creating an array of object references.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
String

Generates a string which, if executed, will return the HTMLExportPreference.

String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a HTMLExportPreference.

Return 1

Methods that return a HTMLExportPreference.