Adobe InCopy CS6 (8.0) Object Model JS: Page

InCopy CS6

Class

Page

 A page.

QuickLinks

addEventListener, extractLabel, getElements, insertLabel, removeEventListener, resolve, toSource, toSpecifier, transformValuesOf

Hierarchy

MasterSpread | Spread
Page
Event | EventListener | FormField | MarginPreference | MutationEvent | PageItem | Preference

Properties

PropertyTypeAccessDescription
allGraphics Array of Graphic readonlyLists all graphics contained by the Page.
allPageItems Array of PageItem readonlyLists all page items contained by the Page.
appliedAlternateLayoutSection readonlyThe alternate layout section to which the page belongs.
appliedMasterMasterSpreadNothingEnum readonlyThe master spread applied to the Page. Can also accept: NothingEnum enumerator.
appliedSectionSection readonlyThe section to which the page belongs.
appliedTrapPresetString
TrapPreset
r/wThe trap preset applied to the page. Can also accept: String.
bounds Array of Measurement Unit (Number or String) readonlyThe bounds of the Page, in the format [y1, x1, y2, x2].
buttonsButtons Button readonlyA collection of buttons.
checkBoxesCheckBoxes readonlyA collection of checkboxes.
comboBoxesComboBoxes readonlyA collection of comboboxes.
documentOffsetnumber readonlyThe sequential number of the page within the document.
epstextsEPSTexts EPSText readonlyEPSTexts
eventListenersEventListeners EventListener readonlyA collection of event listeners.
eventsEvents Event readonlyA collection of events.
formFieldsFormFields FormField readonlyA collection of form fields.
graphicLinesGraphicLines GraphicLine readonlyA collection of graphic lines.
groupsGroups Group readonlyA collection of groups.
guidesGuides Guide readonlyA collection of guides.
idnumber readonlyThe unique ID of the Page.
indexnumber readonlyThe index of the Page within its containing object.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
labelstring r/wA property that can be set to any string.
layoutRuleLayoutRuleOptions:
LayoutRuleOptions.OFF
LayoutRuleOptions.SCALE
LayoutRuleOptions.RECENTER
LayoutRuleOptions.GUIDE_BASED
LayoutRuleOptions.OBJECT_BASED
LayoutRuleOptions.USE_MASTER
LayoutRuleOptions.PRESERVE_EXISTING
readonlylayout rule
listBoxesListBoxes readonlyA collection of listboxes.
marginPreferencesMarginPreference readonlyMargin preference settings.
masterPageItems Array of
Graphics
Guides
Movies
PageItems
Sounds
readonlyThe items on a specified document page that originated on the applied master page and have not been overridden or detached. Can return: Array of PageItems, Guides, Graphics, Movies or Sounds.
masterPageTransformTransformationMatrix r/wThe transform applied to the master page before it is applied to Page.
multiStateObjectsMultiStateObjects MultiStateObject readonlyA collection of multi-state objects.
namestring readonlyThe name of the Page.
optionalPagebool readonlyoptional page for HTML5 pagination
ovalsOvals Oval readonlyA collection of ellipses.
pageItemsPageItems PageItem readonlyThe page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type.
parentMasterSpread
Spread
readonlyThe parent of the Page (a Spread or MasterSpread).
polygonsPolygons Polygon readonlyA collection of polygons.
preferencesPreferences Preference readonlyA collection of preferences objects.
propertiesObject r/wA property that allows setting of several properties at the same time.
radioButtonsRadioButtons RadioButton readonlyA collection of radio buttons.
rectanglesRectangles Rectangle readonlyA collection of rectangles.
sidePageSideOptions:
PageSideOptions.RIGHT_HAND
PageSideOptions.LEFT_HAND
PageSideOptions.SINGLE_SIDED
readonlyThe side of the binding spine on which to place the page within the spread.
signatureFieldsSignatureFields SignatureField readonlyA collection of signature fields.
snapshotBlendingModeSnapshotBlendingModes:
SnapshotBlendingModes.IGNORE_LAYOUT_SNAPSHOTS
SnapshotBlendingModes.USE_NEAREST_SNAPSHOT
SnapshotBlendingModes.LIMITED_SNAPSHOT_BLENDING
SnapshotBlendingModes.FULL_SNAPSHOT_BLENDING
readonlysnapshot blending mode
splineItemsSplineItems SplineItem readonlyThe spline items collection.
tabOrder Array of
Buttons
CheckBoxes
ComboBoxes
ListBoxes
RadioButtons
SignatureFields
TextBoxes
r/wThe order in which the focus moves to different form fields in the PDF when the tab key is pressed. Can return: Array of Buttons, CheckBoxes, ComboBoxes, ListBoxes, RadioButtons, TextBoxes or SignatureFields.
textBoxesTextBoxes readonlyA collection of text boxes.
textFramesTextFrames TextFrame readonlyA collection of text frames.

Methods

Instances

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

Array of Page getElements ()
Resolves the object specifier, creating an array of object references.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

any resolve (location: varies, in: CoordinateSpaces[, consideringRulerUnits: bool=false])
Get the coordinates of the given location in the specified coordinate system.

ParameterTypeDescription
locationAnchorPoint
AnchorPoint
Array of 2 Reals
Array of Arrays of 2 Reals
BoundingBoxLimits
CoordinateSpaces
Long Integers
The location requested. Can accept: Array of 2 Reals, AnchorPoint enumerator or Array of Arrays of 2 Reals, CoordinateSpaces enumerators, AnchorPoint enumerators, BoundingBoxLimits enumerators or Long Integers.
inCoordinateSpaces:
CoordinateSpaces.PASTEBOARD_COORDINATES
CoordinateSpaces.PARENT_COORDINATES
CoordinateSpaces.INNER_COORDINATES
CoordinateSpaces.SPREAD_COORDINATES
The coordinate space to use.
consideringRulerUnitsboolIf true then a ruler location is interpreted using ruler units rather than points. The default value is false. This parameter has no effect unless the reference point is specified relative to a page. (Optional) (default: false)

string toSource ()
Generates a string which, if executed, will return the Page.

string toSpecifier ()
Retrieves the object specifier.

Array of TransformationMatrix transformValuesOf (in: CoordinateSpaces)
Get the transformation values of the page item.

ParameterTypeDescription
inCoordinateSpaces:
CoordinateSpaces.PASTEBOARD_COORDINATES
CoordinateSpaces.PARENT_COORDINATES
CoordinateSpaces.INNER_COORDINATES
CoordinateSpaces.SPREAD_COORDINATES
The coordinate space to use

Element of

Button.parentPage

CheckBox.parentPage

ComboBox.parentPage

EPS.parentPage

EPSText.parentPage

FormField.parentPage

Graphic.parentPage

GraphicLine.parentPage

Group.parentPage

Guide.parentPage

HtmlItem.parentPage

Image.parentPage

ImportedPage.parentPage

ListBox.parentPage

MarginPreference.parent

MediaItem.parentPage

Movie.parentPage

MultiStateObject.parentPage

Oval.parentPage

PDF.parentPage

PICT.parentPage

PageItem.parentPage

Polygon.parentPage

RadioButton.parentPage

Rectangle.parentPage

Section.pageStart

SignatureField.parentPage

Sound.parentPage

SplineItem.parentPage

TextBox.parentPage

TextFrame.parentPage

WMF.parentPage

Window.activePage

Used in:

HyperlinkExternalPageDestination HyperlinkExternalPageDestinations.add ([destination: Page][, withProperties: Object])

Page Pages.nextItem (obj: Page)

Page Pages.previousItem (obj: Page)

Return

Array of Page Page.getElements ()

Page Pages.[] (index: number)

Page Pages.anyItem ()

Array of Page Pages.everyItem ()

Page Pages.firstItem ()

Page Pages.item (index: varies)

Page Pages.itemByID (id: number)

Page Pages.itemByName (name: string)

Array of Page Pages.itemByRange (from: varies, to: varies)

Page Pages.lastItem ()

Page Pages.middleItem ()

Page Pages.nextItem (obj: Page)

Page Pages.previousItem (obj: Page)

Jongware, 29-Apr-2012 v3.0.3iContents :: Index