InDesign2026
API 21.5.1.73
Object

WatermarkPreference

Watermark preference

Preference WatermarkPreference
Hierarchy

Application | Document

WatermarkPreference

Properties

NameType AccessDescription
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Boolean readonly Returns true if the object specifier resolves to valid objects.
Application | Document readonly The parent of the WatermarkPreference (a Document or Application).
Object read/write A property that allows setting of several properties at the same time.
Boolean read/write Watermark do print for a document
Boolean read/write Watermark draw in back for a document
3 Reals (0 - 255)[] | UIColors[]
+25 more
read/write Watermark font color for a document. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator.
String read/write Watermark font family display name
Number read/write Watermark font point size for a document
String read/write Watermark font style name
Number | String unit read/write Watermark horizontal offset for a document
WatermarkHorizontalPositionEnum
read/write Watermark horizontal position enum for a document
Number 0–100 read/write Watermark opacity (as a percentage). (Range: 0 to 100)
Number read/write Watermark rotation for a document
String read/write Watermark text for a document
Number | String unit read/write Watermark vertical offset for a document
WatermarkVerticalPositionEnum
read/write Watermark vertical position enum for a document
Boolean read/write Watermark visibility for a document

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

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

String

Retrieves the object specifier.

Object of 5

Properties elsewhere that hold a WatermarkPreference.

Return 1

Methods that return a WatermarkPreference.