Adobe 26001360 - Illustrator CS - PC Manual page 318

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

318
Table 5.24 Document — Methods (Continued)
Method
Paste()
PrintOut(Option)
Save()
SaveAs(
[saveIn As String],
[options As: EPSSaveOptions/
IllustratorSaveOptions/
PDFSaveOptions])
Notes
Illustrator's default document settings—those properties starting with the word "Default"—are
global settings that affect the current document. Be sure to modify these default properties
only when a document is open. Note that if you set default properties to desired values before
creating new objects, you can streamline your scripts, eliminating the need to specify
properties such as FillColor and Stroked that have analogous default properties.
A document's DocumentColorSpace, Height, and Width can only be set when the
document is created. Once a document is created, these properties cannot be changed.
The frontmost document can be referred to as either AppRef.ActiveDocument or
AppRef.Documents(1).
If you close the document, you should set your document reference to Nothing to prevent
your script accidentally trying to access closed documents.
Example 11.1
The following example shows how to make sure a document is open before setting any of the
default properties.
doc.Close aiDoNotSaveChanges
Set doc = Nothing
Returns
What it does
Nothing
Pastes the contents of the clipboard into
the current layer of the document; if the
document is the frontmost then all
pasted objects remain selected after the
paste
Nothing
Prints the document
Nothing
Saves the document in it current location
Nothing
Saves the document in the specified file
as an Illustrator, EPS, or PDF file
12 Aug 03
Visual Basic Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents