Instance Properties
| Name | Description | Access |
|---|---|---|
| allGraphics | Graphic Lists all graphics contained by the Page. | read-only |
| allPageItems | PageItem Lists all page items contained by the Page. | read-only |
| appliedAlternateLayout | Section The alternate layout section to which the page belongs. | read-only |
| appliedMaster | MasterSpread The master spread applied to the Page. Can also accept: NothingEnum enumerator. | read-write |
| appliedSection | Section The section to which the page belongs. | read-only |
| appliedTrapPreset | TrapPreset The trap preset applied to the page. Can also accept: String. | read-write |
| bounds | Measurement Unit (Number or String)=any The bounds of the Page, in the format [y1, x1, y2, x2]. | read-only |
| buttons | Buttons A collection of buttons. | read-only |
| checkBoxes | CheckBoxes A collection of checkboxes. | read-only |
| comboBoxes | ComboBoxes A collection of comboboxes. | read-only |
| documentOffset | number The sequential number of the page within the document. | read-only |
| epstexts | EPSTexts EPSTexts | read-only |
| eventListeners | EventListeners A collection of event listeners. | read-only |
| events | Events A collection of events. | read-only |
| formFields | FormFields A collection of form fields. | read-only |
| graphicLines | GraphicLines A collection of graphic lines. | read-only |
| gridData | GridDataInformation Default grid properties. Note: Applies to named, layout, and frame (story) grids. | read-only |
| groups | Groups A collection of groups. | read-only |
| guides | Guides A collection of guides. | read-only |
| id | number The unique ID of the Page. | read-only |
| index | number The index of the Page within its containing object. | read-only |
| isValid | bool Returns true if the object specifier resolves to valid objects. | read-only |
| label | string A property that can be set to any string. | read-write |
| layoutRule | LayoutRuleOptions layout rule | read-write |
| listBoxes | ListBoxes A collection of listboxes. | read-only |
| marginPreferences | MarginPreference Margin preference settings. | read-only |
| masterPageItems | The 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. | read-only |
| masterPageTransform | TransformationMatrix The transform applied to the master page before it is applied to Page. | read-write |
| multiStateObjects | MultiStateObjects A collection of multi-state objects. | read-only |
| name | string The name of the Page. | read-only |
| optionalPage | bool optional page for HTML5 pagination. Obsolete after CS6 | read-write |
| ovals | Ovals A collection of ellipses. | read-only |
| pageColor | The color label of the Page, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as a UI color. Can return: Array of 3 Reals (0 - 255) or UIColors enumerator or PageColorOptions enumerator. | read-write |
| pageItems | PageItems The 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. | read-only |
| parent | The parent of the Page (a Spread or MasterSpread). | read-only |
| polygons | Polygons A collection of polygons. | read-only |
| preferences | Preferences A collection of preferences objects. | read-only |
| properties | Object A property that allows setting of several properties at the same time. | read-write |
| radioButtons | RadioButtons A collection of radio buttons. | read-only |
| rectangles | Rectangles A collection of rectangles. | read-only |
| side | PageSideOptions The side of the binding spine on which to place the page within the spread. | read-only |
| signatureFields | SignatureFields A collection of signature fields. | read-only |
| snapshotBlendingMode | SnapshotBlendingModes snapshot blending mode | read-write |
| splineItems | SplineItems The spline items collection. | read-only |
| tabOrder | The 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. | read-write |
| textBoxes | TextBoxes A collection of text boxes. | read-only |
| textFrames | TextFrames A collection of text frames. | read-only |
Methods
| addEventListener( | eventType, handler [, captures]) |
→ EventListener |
| contentPlace( | pageItems [, linkPageItems] [, linkStories] [, mapStyles] [, placePoint] [, destinationLayer] [, showingOptions]) |
| detach( | ) |
| extractLabel( | key) |
→ string |
| getElements( | ) |
→ Page |
| insertLabel( | key, value) |
| place( | fileName [, placePoint] [, destinationLayer] [, showingOptions] [, autoflowing] [, withProperties]) |
| placeAndLink( | parentStory [, placePoint] [, destinationLayer] [, showingOptions]) |
→ Story |
| reframe( | in, opposingCorners) |
| remove( | ) |
| removeEventListener( | eventType, handler [, captures]) |
→ bool |
| resize( | in, from, by, values [, resizeIndividually] [, consideringRulerUnits]) |
| resolve( | location, in [, consideringRulerUnits]) |
| select( | [existingSelection]) |
| setContent( | using [, relativeBasePath]) |
→ PageItem |
| toSource( | ) |
→ string |
| toSpecifier( | ) |
→ string |
| transform( | in, from, withMatrix, replacingCurrent [, consideringRulerUnits]) |
-
addEventListener( eventType, handler [, captures=false])→ EventListener -
Adds an event listener.
eventTypestring The event type. handlerThe event handler. Can accept: File or JavaScript Function. capturesbool This parameter is obsolete. (Optional) -
contentPlace( pageItems [, linkPageItems=false] [, linkStories=false] [, mapStyles=false] [, placePoint] [, destinationLayer] [, showingOptions=false]) -
Duplicate an object and place it into the target.
pageItemsArray<PageItem> One or more page items to place or load linkPageItemsbool Whether to link pageItems in content placer (if true it will override link stories value) (Optional) linkStoriesbool Whether to link stories in content placer (only applicable for single story, pageItem links will also be created in case of more than one item) (Optional) mapStylesbool Whether to map styles in content placer (Optional) placePointArray<Measurement Unit (Number or String)=any> The point at which to place (Optional) destinationLayerLayer The layer on which to place (Optional) showingOptionsbool Whether to display the link options dialog (Optional) -
deleteAllLayoutSnapshots( ) -
Delete all layout snapshots for this Page.
-
deleteLayoutSnapshot( ) -
Delete the snapshot of the layout for the current Page size and shape.
-
detach( ) -
Detaches an overridden master page item from the master page.
-
duplicate( [to=LocationOptions.AT_END], reference)→ Page -
Duplicates the page.
toLocationOptions The location at which to place the duplicate page relative to the reference object or within the document or spread. (Optional) referenceThe reference object. Note: Required when the to value specifies before or after. Can accept: Page or Spread. (Optional) -
extractLabel( key)→ string -
Gets the label value associated with the specified key.
keystring The key. -
getElements( )→ Page -
Resolves the object specifier, creating an array of object references.
-
insertLabel( key, value) -
Sets the label to the value associated with the specified key.
keystring The key. valuestring The value. -
move( [to=LocationOptions.AT_END], reference [, binding=BindingOptions.DEFAULT_VALUE])→ Page -
Moves the page.
toLocationOptions The new location of the page relative to the reference object or within the document or spread. (Optional) referenceThe reference object. Note: Required when the to parameter value specifies before or after. Can accept: Page or Spread. (Optional) bindingBindingOptions The location of the binding spine in spreads. (Optional) -
place( fileName [, placePoint] [, destinationLayer] [, showingOptions=false] [, autoflowing=false] [, withProperties]) -
Places the file.
fileNameFile The file to place placePointArray<Measurement Unit (Number or String)=any> The point at which to place (Optional) destinationLayerLayer The layer on which to place (Optional) showingOptionsbool Whether to display the import options dialog (Optional) autoflowingbool Whether to autoflow placed text (Optional) withPropertiesObject Initial values for properties of the placed object(s) (Optional) -
placeAndLink( parentStory [, placePoint] [, destinationLayer] [, showingOptions=false])→ Story -
Deprecated: Use contentPlace method. Original Description: Create a linked story and place it into the target.
parentStoryStory The story to place and link from. placePointArray<Measurement Unit (Number or String)=any> The point at which to place (Optional) destinationLayerLayer The layer on which to place (Optional) showingOptionsbool Whether to display the link options dialog (Optional) -
placeXML( using, placePoint [, autoflowing=false])→ PageItem -
Places the XML element onto a page. If the place point is above an existing page item, place the XML element into the page item.
usingXMLElement The XML element to place. placePointArray<Measurement Unit (Number or String)=any> The point at which to place the object, specified in the format [x, y]. autoflowingbool If true, autoflows placed text. (Optional) -
reframe( in, opposingCorners) -
Move the bounding box of the page item
inThe bounding box to resize. Can accept: CoordinateSpaces enumerator or Ordered array containing coordinateSpace:CoordinateSpaces enumerator, boundsKind:BoundingBoxLimits enumerator. opposingCornersOpposing corners of new bounding box in the given coordinate space -
remove( ) -
Deletes the Page.
-
removeEventListener( eventType, handler [, captures=false])→ bool -
Removes the event listener.
eventTypestring The registered event type. handlerThe registered event handler. Can accept: File or JavaScript Function. capturesbool This parameter is obsolete. (Optional) -
removeOverride( ) -
Removes the override from a previously overridden master page item.
-
resize( in, from, by, values [, resizeIndividually=true] [, consideringRulerUnits=false]) -
Resize the page item.
inThe bounding box to resize. Can accept: CoordinateSpaces enumerator, BoundingBoxLimits enumerator or Ordered array containing coordinateSpace:CoordinateSpaces enumerator, boundsKind:BoundingBoxLimits enumerator. fromThe transform origin. Legal specifications: relative to bounding box: anchor | {anchor | {x,y}, bounds kind [, coordinate space]}; relative to coordinate space: {x,y} | {{x,y}[, coordinate space]}; relative to layout window ruler: {{x,y}, page index | bounds kind}. Can accept: Array of 2 Reals, AnchorPoint enumerator or Array of Arrays of 2 Reals, CoordinateSpaces enumerators, AnchorPoint enumerators, BoundingBoxLimits enumerators or Long Integers. byResizeMethods How the current dimensions are affected by the given values valuesThe width and height values. Legal dimensions specifications: {x, y [, coordinate space]}, {x, resize constraint [, coordinate space]}, or {resize constraint, y [, coordinate space]}; where x and y are real numbers and coordinate space is used to determine _only_ the unit of length for x and y; coordinate space is ignored for the 'current dimensions times' resize method). Can accept: Array of Reals, ResizeConstraints enumerators or CoordinateSpaces enumerators. resizeIndividuallybool If false and multiple page items are targeted, the new dimensions are attained only by moving the individual items rather than resizing them. (Optional) consideringRulerUnitsbool If 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) -
resolve( location, in [, consideringRulerUnits=false]) -
Get the coordinates of the given location in the specified coordinate system.
locationThe 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 The coordinate space to use. consideringRulerUnitsbool If 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) -
select( [existingSelection=SelectionOptions.REPLACE_WITH]) -
Selects the object.
existingSelectionSelectionOptions The selection status of the Page in relation to previously selected objects. (Optional) -
setContent( using [, relativeBasePath])→ PageItem -
Replaces the content of XML element with content imported from a file.
usingstring The file path to the import file. relativeBasePathstring Base path used to resolve relative paths. (Optional) -
snapshotCurrentLayout( ) -
Create a snapshot of the layout for the current Page size and shape.
-
toSource( )→ string -
Generates a string which, if executed, will return the Page.
-
toSpecifier( )→ string -
Retrieves the object specifier.
-
transform( in, from, withMatrix, replacingCurrent [, consideringRulerUnits=false]) -
Transform the page item.
inCoordinateSpaces The coordinate space to use fromThe temporary origin during the transformation. Can accept: Array of 2 Reals, AnchorPoint enumerator or Array of Arrays of 2 Reals, CoordinateSpaces enumerators, AnchorPoint enumerators, BoundingBoxLimits enumerators or Long Integers. withMatrixTransform matrix. Can accept: Array of 6 Reals or TransformationMatrix. replacingCurrentTransform components to consider; providing this optional parameter causes the target's existing transform components to be replaced with new values. Without this parameter, the given matrix is concatenated onto the target's existing transform combining the effect of the two. Can accept: MatrixContent enumerator, Array of MatrixContent enumerators or Long Integer. (Optional) consideringRulerUnitsbool If true then a ruler based origin 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) -
transformValuesOf( in)→ TransformationMatrix -
Get the transformation values of the page item.
inCoordinateSpaces The coordinate space to use