Adobe 26001360 Scripting Guide - Page 318
Notes, Example 11.1, Table 5.24, Document - Methods Continued
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 318 highlights
318 Visual Basic Reference Table 5.24 Document - Methods (Continued) Method Returns Paste() Nothing PrintOut(Option) Save() SaveAs( [saveIn As String], [options As: EPSSaveOptions/ IllustratorSaveOptions/ PDFSaveOptions]) Nothing Nothing Nothing What it does 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 Prints the document Saves the document in it current location Saves the document in the specified file as an Illustrator, EPS, or PDF file 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 12 Aug 03