Graphic

A generic graphic. Any placed graphic can be referred to using this object.

Graphic Properties

Property Type Access Description
absoluteHorizontalScale Real r/w The horizontal scaling percentage applied to the object, not including any scaling applied to its containing object.
absoluteRotationAngle Real r/w The rotation angle applied to the object, not including any rotation applied to its containing object.
absoluteShearAngle Real r/w The shear angle applied to the object, not including any shearing applied to its containing object.
absoluteVerticalScale Real r/w The vertical scaling percentage applied to the object, not including any scaling applied to its containing object.
geometricBounds Array of 4 Units r/w The bounds of the page item excluding the stroke width, in the form (top, left, bottom, right).
horizontalScale Real r/w The horizontal scaling percentage applied to the object, including the scaling applied to its containing object(s).
id Long read A unique number identifying the object.
imageTypeName String read The type of image.
index Long read Index of the object within its parent object.
itemLink Link read Link to a placed file.
label String r/w A label that can be set to any string.
localDisplaySetting DisplaySettingOptions enumeration r/w The display settings for the object.
overridden Boolean read If true, this object originated on a master spread, was overridden, and is still linked to the object on the master spread.
overriddenMasterPageItem PageItem, Guide, Graphic, Movie, Sound read A reference to the original object on the master spread (for overridden objects).
parent Object read The parent of the object.
properties An array of property names and values r/w Property that allows setting of several properties at the same time.
rotationAngle Real r/w The rotation angle applied to the object, including any rotation applied to its containing object.
shearAngle Real r/w The shear angle of the object, including any shearing applied to its containing object.
verticalScale Real r/w The vertical scaling percentage applied to the object, including the scaling applied to its containing object(s).
visibleBounds Array of 4 Units r/w The bounds of the page item, including the stroke width, in the form (top, left, bottom, right).

Graphic Methods

Method Returns Description
detach Nothing Detaches an overridden page item from the master page item.
duplicate PageItem Duplicates the object.
exportFile Nothing Export the object to file.
extractLabel String Gets the content of the label associated with the specified key (name).
flipItem Nothing Flips the object around a specified axis.
getElements Array of Objects Resolve the object specifier.
insertLabel Nothing Sets the content of the label associated with the specified key (name), creating the label if it does not already exist.
move Nothing Move object to a new location. One of the parameters is required.
override PageItem, Guide, Graphic, Movie or Sound Overrides an item from the master page and places it on the page.
place PageItem, Graphic, Movie, Sound, Story or Text Places a file.
remove Nothing Delete the object.
removeOverride Nothing Removes a locally overridden master page item.
resize Nothing Resizes the object.
rotate Nothing Rotates the object.
shear Nothing Shears the page item.
toSource String Generate JavaScript source that, if executed, will return the specified objects.
toSpecifier String Retrieve the object specifier.
transformAgain Array of Strings Repeats the last transformation.
transformAgainIndividually Array of Strings Transforms the object using the last transformation (applied individually).
transformSequenceAgain Array of Strings Transforms the object using the last sequence of transformations.
transformSequenceAgainIndividually Array of Strings Transforms the object using the last sequence of transformations (applied individually).

Leave a Comment

Previous post:

Next post: