A collection of documents.
Go to Property Listing | Method Listing
add, addDocument, addDocumentWithDialogOption, arrange, getByName
Property |
Type |
Access |
Description |
---|---|---|---|
Int |
readonly |
Number of elements in the collection. |
|
readonly |
The object's container. |
||
readonly |
The class name of the object. |
Document add ([documentColorSpace:DocumentColorSpace=DocumentColorSpace], [width:Number=Number], [height:Number=Number], [numArtboards:Int32=Int32], [artboardLayout:DocumentArtboardLayout=DocumentArtboardLayout], [artboardSpacing:Number=Number], [artboardRowsOrCols:Int32=Int32])
A document.
Parameter |
Type |
Description |
---|---|---|
documentColorSpace |
The color model used for the document. (default: DocumentColorSpace.CMYK) |
|
width |
Width of the artboard. (default: 612.0) |
|
height |
Height of the artboard. (default: 792.0) |
|
numArtboards |
Int32 |
Number of artboards for new document.Range (1:100). (default: 1) |
artboardLayout |
Layout of artboards for new document. (default: DocumentArtboardLayout.GridByRow) |
|
artboardSpacing |
Spacing between artboards for new document. (default: 20.0) |
|
artboardRowsOrCols |
Int32 |
Number of rows (for rows layout) OR column(for column layouts)of artboards.Range is 1 to (docNumArtboards - 1) or 1 for single row or column layouts. (default: 1) |
Document addDocument (startupPreset:String, [presetSettings:DocumentPreset], [showOptionsDialog:Boolean])
Create a new document from a preset.
Parameter |
Type |
Description |
---|---|---|
startupPreset |
The name of a startup document preset. |
|
presetSettings |
Custom settings to apply to the preset. |
|
showOptionsDialog |
If false, do not show Options dialog. |
Document addDocumentWithDialogOption (startupPreset:String, [showOptionsDialog:Boolean])
Create a document from the preset with option to throw dialog to customize present settings.
Parameter |
Type |
Description |
---|---|---|
startupPreset |
The name of startup document preset. |
|
showOptionsDialog |
Argument controls if options Dialog is shown or not. |
Boolean arrange (layoutStyle:DocumentLayoutStyle)
Arranges the documents in the specified style.
Parameter |
Type |
Description |
---|---|---|
layoutStyle |
The document layout style. |
Document getByName (name:String)
Get the first element in the collection with the provided name.
Parameter |
Type |
Description |
---|---|---|
name |
Application.documents