InDesign Server2025
API 20.5.0.49
Object

DocumentEvent

A document event.

Event DocumentEvent
Hierarchy

Application | Document

DocumentEvent

Properties

NameType AccessDescription
Boolean readonly If true, the event supports the bubbling phase of propagation.
Boolean readonly If true, the default behavior of the event on its target can be canceled.
Object readonly The current propagation target of the event.
Boolean readonly If true, the default behavior of the event on its target has been canceled.
EventPhases
readonly The current propagation phase of the event.
String readonly The name of the event.
File readonly The full path to the DocumentEvent, including the name of the DocumentEvent.
Number readonly The unique ID of the DocumentEvent.
Number readonly The index of the DocumentEvent within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
Application | Document readonly The parent of the DocumentEvent (a Application or Document).
Boolean readonly If true, propagation of the event beyond the current target has been stopped.
Object read/write A property that allows setting of several properties at the same time.
Object readonly The target of the event.
Date readonly The time the event was initialized.

Events

NameDescription
Dispatched after a Document is closed. This event bubbles. This event is not cancelable.
Dispatched after a Document is created. This event bubbles. This event is not cancelable.
Dispatched after a Document is opened. This event bubbles. This event is not cancelable.
Dispatched after a Document is reverted. This event bubbles. This event is not cancelable.
Dispatched after a Document is saved. This event bubbles. This event is not cancelable.
Dispatched after a Document is saved under a new name. This event bubbles. This event is not cancelable.
Dispatched after a copy of a Document is saved. This event bubbles. This event is not cancelable.
Dispatched before a Document is closed. This event bubbles. This event is not cancelable.
Dispatched before a Document is created. This event bubbles. This event is cancelable.
Dispatched before a Document is opened. This event bubbles. This event is cancelable.
Dispatched before a Document is reverted. This event bubbles. This event is cancelable.
Dispatched before a Document is saved. This event bubbles. This event is cancelable.
Dispatched before a Document is saved under a new name. This event bubbles. This event is cancelable.
Dispatched before a copy of a Document is saved. This event bubbles. This event is cancelable.

Methods

DocumentEvent[]

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

void

Cancels the default behavior of the event on its target.

void

Stops propagation of the event beyond the current target.

String

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

String

Retrieves the object specifier.

Object of 1

Properties elsewhere that hold a DocumentEvent.

Return 1

Methods that return a DocumentEvent.