WatermarkPreference

Watermark preference

Methods:

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Objects:

Boolean, EventListeners, Events, Number, Object, String, UIColors, WatermarkHorizontalPositionEnum, WatermarkVerticalPositionEnum

Hierarchy:

Superclass: Preference

Class: WatermarkPreference

Property Listing

Property

Type

Access

Description

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

parent

Application

Document

readonly

The parent of the WatermarkPreference (a Document or Application).

properties

Object

read/write

A property that allows setting of several properties at the same time.

watermarkDoPrint

Boolean

read/write

Watermark do print for a document

watermarkDrawInBack

Boolean

read/write

Watermark draw in back for a document

watermarkFontColor

Array of 3 Reals (0 - 255)

UIColors

read/write

Watermark font color for a document. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator.

watermarkFontFamily

String

read/write

Watermark font family display name

watermarkFontPointSize

Number

read/write

Watermark font point size for a document

watermarkFontStyle

String

read/write

Watermark font style name

watermarkHorizontalOffset

Number

String

read/write

Watermark horizontal offset for a document

watermarkHorizontalPosition

WatermarkHorizontalPositionEnum

WatermarkHorizontalPositionEnum.WATERMARK_H_CENTER

WatermarkHorizontalPositionEnum.WATERMARK_H_LEFT

WatermarkHorizontalPositionEnum.WATERMARK_H_RIGHT

read/write

Watermark horizontal position enum for a document

watermarkOpacity

Number (range 0 - 100)

read/write

Watermark opacity (as a percentage). (Range: 0 to 100)

watermarkRotation

Number

read/write

Watermark rotation for a document

watermarkText

String

read/write

Watermark text for a document

watermarkVerticalOffset

Number

String

read/write

Watermark vertical offset for a document

watermarkVerticalPosition

WatermarkVerticalPositionEnum

WatermarkVerticalPositionEnum.WATERMARK_V_BOTTOM

WatermarkVerticalPositionEnum.WATERMARK_V_CENTER

WatermarkVerticalPositionEnum.WATERMARK_V_TOP

read/write

Watermark vertical position enum for a document

watermarkVisibility

Boolean

read/write

Watermark visibility for a document

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

WatermarkPreference getElements ()

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

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

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. (Optional)

(default: false)

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

Event.parent

EventListener.parent

MutationEvent.parent

Application.watermarkPreferences

Document.watermarkPreferences

Return

WatermarkPreference.getElements()