A preset that contains all of the new document settings.
Go to Property Listing | Method Listing
remove, duplicate, insertLabel, extractLabel, toSource, getElements, toSpecifier, addEventListener, removeEventListener
Application, Boolean, DocumentIntentOptions, EventListeners, Events, Number, Object, PageOrientation, String,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
bottom |
read/write |
The bottom edge of the DocumentPreset. |
|
|
columnCount |
Number (range 1 - 216) |
read/write |
The number of columns to place on the page. |
|
columnGutter |
read/write |
The distance between columns. |
|
|
createPrimaryTextFrame |
read/write |
If true, the document A-master has primary text frames when a new document is created. |
|
|
documentBleedBottomOffset |
read/write |
The amount to offset the bottom document bleed. Note: To set the bleed bottom offset, document bleed uniform size must be false. |
|
|
documentBleedInsideOrLeftOffset |
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. |
|
|
documentBleedOutsideOrRightOffset |
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. |
|
|
documentBleedTopOffset |
read/write |
The amount to offset the top document bleed. |
|
|
documentBleedUniformSize |
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. |
|
|
documentSlugUniformSize |
read/write |
If true, uses the slug top offset value for slug measurements on all sides of the document. The default value is false. |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
facingPages |
read/write |
If true, the document has facing pages. |
|
|
id |
readonly |
The unique ID of the DocumentPreset. |
|
|
index |
readonly |
The index of the DocumentPreset within its containing object. |
|
|
intent |
DocumentIntentOptions.PRINT_INTENT DocumentIntentOptions.WEB_INTENT DocumentIntentOptions.DPS_INTENT |
read/write |
The intent for a document. |
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
label |
read/write |
A property that can be set to any string. |
|
|
left |
read/write |
The left edge of the DocumentPreset. |
|
|
name |
read/write |
The name of the DocumentPreset. |
|
|
pageHeight |
read/write |
The height of the page. |
|
|
pageOrientation |
PageOrientation.LANDSCAPE PageOrientation.PORTRAIT |
read/write |
The page orientation. |
|
pageSize |
read/write |
The size of the page. |
|
|
pageWidth |
read/write |
The width of the page. |
|
|
pagesPerDocument |
Number (range 1 - 9999) |
read/write |
The number of pages in the document. (Range: 1 to 9999) |
|
parent |
readonly |
The parent of the DocumentPreset (a Application). |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
right |
read/write |
The right edge of the DocumentPreset. |
|
|
slugBottomOffset |
read/write |
The amount to offset the bottom slug. Note: To set the slug bottom offset, document slug uniform size must be false. |
|
|
slugInsideOrLeftOffset |
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. |
|
|
slugRightOrOutsideOffset |
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. |
|
|
slugTopOffset |
read/write |
The amount to offset the top slug. |
|
|
startPageNumber |
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. |
|
top |
read/write |
The top edge of the DocumentPreset. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
DocumentPreset duplicate ()
Duplicates the DocumentPreset.
String extractLabel (key:String)
Gets the label value associated with the specified key.
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
The key. |
DocumentPreset getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
undefined remove ()
Deletes the DocumentPreset.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
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 DocumentPreset.
String toSpecifier ()
Retrieves the object specifier.