DocumentPreference
Document preferences.
Go to Property Listing | Method Listing
Methods:
addEventListener, getElements, removeEventListener, toSource, toSpecifier
Objects:
Boolean, DocumentIntentOptions, EventListeners, Events, HorizontalOrVertical, Number, Object, PageBindingOptions, PageOrientation, String, UIColors,
Hierarchy:
Superclass: Preference
Class: DocumentPreference
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
read/write |
If true, guarantees that when pages are added to a spread it will contain a maximum of two pages. If false, allows pages to be added or moved into existing spreads. For override information, see preserve layout when shuffling. |
||
read/write |
The direction of text in the column. |
||
Array of 3 Reals (0 - 255) |
read/write |
The color of the column guides, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values,, or as a UI color. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator. |
|
read/write |
If true, locks column guides. |
||
read/write |
If true, the document A-master has primary text frames when a new document is created. |
||
read/write |
The amount to offset the bottom document bleed. Note: To set the bleed bottom offset, document bleed uniform size must be false. |
||
read/write |
The amount to offset the inside or left document bleed. Note: To set the bleed inside or left offset, document bleed uniform size must be false. |
||
read/write |
The amount to offset the outside or right document bleed. Note: To set the bleed outside or right offset, document bleed uniform size must be false. |
||
read/write |
The amount to offset the top document bleed. |
||
read/write |
If true, uses the document bleed top offset value for bleed offset measurements on all sides of the document. The default setting is true. |
||
read/write |
If true, uses the slug top offset value for slug measurements on all sides of the document. The default value is false. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
read/write |
If true, the document has facing pages. |
||
read/write |
The intent for a document. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
Array of 3 Reals (0 - 255) |
read/write |
The color of the margin guides, specified either as an array of three doubles, each in the range 0 to 255, representing R, G, and B values, or as a UI color. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator. |
|
read/write |
If true, overprints black when saving the document. |
||
read/write |
The placement of the page binding. |
||
read/write |
The height of the page. |
||
read/write |
The page orientation. |
||
read/write |
The size of the page. |
||
read/write |
The width of the page. |
||
Number (range 1 - 9999) |
read/write |
The number of pages in the document. (Range: 1 to 9999) |
|
readonly |
The parent of the DocumentPreference (a Application or Document). |
||
read/write |
If true, preserves the layout of spreads that contained more than two pages when allow page shuffle was turned on. If false, changes multi-page spreads to two-page spreads if the spreads were created or changed since allow page shuffle was turned on. |
||
read/write |
A property that allows setting of several properties at the same time. |
||
read/write |
The amount to offset the bottom slug. Note: To set the slug bottom offset, document slug uniform size must be false. |
||
read/write |
The amount to offset the inside or left slug. Note: To set the slug inside or left offset, document slug uniform size must be false. |
||
read/write |
The amount to offset the outside or right slug. Note: To set the slug right or outside offset, document slug uniform size must be false. |
||
read/write |
The amount to offset the top slug. |
||
read/write |
If true, causes UI-based snippet import to use original location for page items. |
||
read/write |
If true, denotes that the hidden spread is visible on document. If false, denotes that the hidden spread is not not visible on document. |
||
Number (range 1 - 999999) |
read/write |
The starting page number for a document. This is the same as the starting page number for the first section of a document. Default value is 1. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
DocumentPreference 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 |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the DocumentPreference.
String toSpecifier ()
Retrieves the object specifier.
Object of
Application.documentPreferences
Document.documentPreferences
Event.parent
EventListener.parent
MutationEvent.parent