EDOBE XDOM TPC Technical Information Page 20

  • Download
  • Add to my manuals
  • Print
  • Page
    / 68
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 19
CHAPTER 2: The Illustrator Scripting Object Model The artwork tree 20
Document
The document object, which your scripts can create or access through the application object, represents
an art canvas or loaded Illustrator file. The
document object’s properties give you access to the document’s
content; for example:
X The current selection, or art objects that the user selected in the document
X All contained art objects, called page items, that make up the artwork tree
X Art objects of particular types, like symbols and text frames
X All layers and the currently active layer
Document properties also tell you about the state of the document itself; for example:
X User settings for the document, such as ruler units
X Whether the document was saved since the last alteration of content
X The path of the associated file
The
document object’s methods allow your scripts to act on the document; for example:
X Save to an Illustrator file or save as the various supported file formats
X Activate or close a document
X Print the document. Your scripts can select a printer by referencing a print options object, or they
can reference available printers through the application object’s
printer list property.
Layer
The layer object provides access to the contents, or artwork tree, of a specific layer. You access the layer
object through the
document object. The layer object properties provide access to, or information about,
the layer, such as:
X Whether the layer is visible or locked.
X The layers opacity (overall transparency) and z order position (position in the stacking order).
X Art-creation preferences for the layer, like artwork knockout and blending mode.
The artwork tree
The content of an Illustrator document is called the artwork tree. Artwork is represented by the following
objects:
X compound path item
X graph item
X group item
X legacy text item
Page view 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 67 68

Comments to this Manuals

No comments