Activate the first window associated with the document.
Document
A document.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| String | read/write | The XMP packet string associated with the document. | |
| DataSet | read/write | The active data set. | |
| Layer | read/write | The active layer. | |
| View | readonly | The document's current view. | |
| Artboards |
readonly | All artboards in the document. | |
| Assets |
readonly | All assets in the document. | |
| Brushes |
readonly | The brushes defined in this document. | |
| CharacterStyles |
readonly | The list of character styles in this document. | |
| String | readonly | Path specification for the cloud document. | |
| String | readonly | The name of the color profile of the document. | |
| CompoundPathItems |
readonly | The compound path artwork in this collection. | |
| Rect | read/write | ||
| CropOptions | read/write | ||
| DataSets |
readonly | The data sets defined in this document. | |
| Color | read/write | Default fill color. | |
| Boolean | read/write | Will art beneath a filled object be overprinted by default? | |
| Boolean | read/write | Should a new path be filled? | |
| StrokeCap | read/write | Default type of line capping. | |
| Color | read/write | Default stroke color. | |
| Number | read/write | The default distance into the dash pattern at which the pattern should be started. | |
| Number[] | read/write | Default dash lengths (set to {} for a solid line) | |
| StrokeJoin | read/write | Default type of joints. | |
| Number | read/write | Specifies whether a join is mitered (pointed) or beveled (squared-off) by default. | |
| Boolean | read/write | Will art beneath a stroked object be overprinted by default? | |
| Number | read/write | Default width of stroke. | |
| Boolean | read/write | Should a new path be stroked? | |
| DocumentColorSpace | readonly | The color space used for the document. | |
| EmbeddedItems |
readonly | The embedded art items in this layer. | |
| File | readonly | The file associated with the document. | |
| Rect | readonly | The bounds of the illustration excluding stroke width. | |
| Gradients |
readonly | The gradients available in this document. | |
| GraphItems |
readonly | The graph art items in this document. | |
| ArtStyles |
readonly | The graphic styles defined in this document. | |
| GridRepeatItems |
readonly | The grid repeat items in this document. | |
| GroupItems |
readonly | The group items in this document. | |
| Number | readonly | ||
| Ink[] | readonly | The list of inks in this document. | |
| Boolean | readonly | Is the document saved on cloud. | |
| String[] | readonly | The Kinsoku set. | |
| Layers |
readonly | The layers in this document. | |
| LegacyTextItems |
readonly | The text frame items in this story. | |
| MeshItems |
readonly | The mesh art items in this document. | |
| String[] | readonly | The Mojikumi set. | |
| String | readonly | The document's name. | |
| NonNativeItems |
readonly | The non-native art items in this document. | |
| Number | readonly | ||
| PageItems |
readonly | All the artwork in this document. | |
| Point | read/write | ||
| ParagraphStyles |
readonly | The list of paragraph styles in this document. | |
| The | readonly | The object's container. | |
| File | readonly | Path specification for the document. | |
| PathItems |
readonly | The path artwork in this document. | |
| Patterns |
readonly | The patterns available in this document. | |
| PlacedItems |
readonly | The placed art items in this document. | |
| PluginItems |
readonly | The plugin art items in this document. | |
| Boolean | readonly | ||
| RadialRepeatItems |
readonly | The radial repeat items in this document. | |
| RasterEffectOptions | read/write | The document raster effects settings. | |
| RasterItems |
readonly | The raster art items in this document. | |
| Point | read/write | ||
| RulerUnits | readonly | ||
| Boolean | read/write | Has the document been saved? | |
| Number | readonly | The scale factor of the document. | |
| Varies | read/write | The selection within the document. | |
| Boolean | readonly | ||
| Boolean | readonly | ||
| Spots |
readonly | The custom spot colors available in this document. | |
| Boolean | readonly | Is the file a stationery file? | |
| Stories |
readonly | The story items in this document. | |
| SwatchGroups |
readonly | The Swatch Groups in this document. | |
| Swatches |
readonly | The swatches in this document. | |
| SymbolItems |
readonly | The symbol items in this document. | |
| Symbols |
readonly | The symbols defined in this document. | |
| SymmetryRepeatItems |
readonly | The symmetry repeat items in this document. | |
| Tags |
readonly | The tags in this document. | |
| TextFrameItems |
readonly | The text frame items in this document. | |
| Boolean | readonly | ||
| String | readonly | The class name of the object. | |
| Boolean | readonly | ||
| Variables |
readonly | The variables defined in this document. | |
| Boolean | read/write | The locked variables. | |
| Views |
readonly | The views in this document. | |
| Rect | readonly | The visible bounds of the illustration including stroke width. | |
| Number | readonly |
Methods
Close the specified document(s)
Converts the coordinate system of a single point from one coordinate system to another.
Convert the document to Large Canvas Document.
Export the specified document(s)
Export the specified document/asset(s)/artboard(s)
Save all PDF presets to a file.
Saves all perspective grid presets to a file.
Export the current print setting to the preset file.
Export the selection as Ai file.
Export the selection as PNG file.
Save datasets into an XML library. The datasets contain variables and their associated dynamic data.
Change the artboard to selected art bounds.
Retrieves the pageitem using Uuid.
Gets the active plane of the active perspective grid of the document.
Hides the current active perspective grid for the document, if there is visible perspective grid.
Capture the artwork content inside the clip bound as raster image, and write out the captured image data into the target image file.
Load the character styles from the Illustrator file.
Import the file into current Ai document.
Load all PDF presets from a file.
Load the paragraph styles from the Illustrator file.
Loads mentioned perspective grid preset, if preset name is specified, else loads all(if no preset name is specified) presets, from the specified file.
Apply the named print preset from the file to the current print setting.
Import a library containing datasets, variables and their associated dynamic data. Importing variables will overwrite existing variables and datasets.
Print the document.
Process a gesture based on input points.
Rasterize the source art(s) within the specified clip bounds. The source art(s) are disposed as a result of the rasterization.
Rearrange Artboards in the document.
Save the document.
Save the document with specific save options.
Save the document to cloud at the specified path.
Select art objects in active artboard.
Selects a predefined preset to define grid for the current document.
Sets the active perspective plane for the active grid of the document.
Shows the current active perspective grid for the document, if no active perspective grid then shows the default perspective grid for the document.
Capture the current document window to the target TIFF image file.
Write the document to a file as a library of specified type.
Object of 1
Properties elsewhere that hold a Document.
Return 7
Methods that return a Document.