InDesign Server2025
API 20.5.0.49
Object

GeneralPreference

General application preferences.

Preference GeneralPreference
Hierarchy

Application

GeneralPreference

Properties

NameType AccessDescription
Number read/write The threshold at which to trigger font subsetting based on the number of glyphs the font contains.
Boolean read/write If true, enable content-aware fit as default while placing items
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Boolean read/write If true, includes a preview in saved documents.
Boolean readonly Returns true if the object specifier resolves to valid objects.
PageNumberingOptions
read/write The page numbering method.
Application readonly The parent of the GeneralPreference (a Application).
PreviewPagesOptions
read/write The pages to create preview images for. Note: Valid when include preview is true.
PreviewSizeOptions
read/write The preview size. Note: Valid when include preview is true.
Object read/write A property that allows setting of several properties at the same time.
File read/write The location in which to store temporary files.
Boolean read/write If true, objects after ungrouping go back to their original layers.

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.
GeneralPreference[]

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 GeneralPreference.

String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a GeneralPreference.

Return 1

Methods that return a GeneralPreference.