Page

A page.

Methods:

detach, duplicate, extractLabel, getElements, insertLabel, move, place, placeXML, remove, removeOverride, setContent, toSource, toSpecifier

Objects:

Buttons, FormField, FormFields, Graphic, GraphicLines, Graphics, Groups, Guides, MarginPreference, MasterSpread, Movies, NothingEnum, Number, Object, Ovals, PageItem, PageItems, PageSideOptions, Polygons, Rectangles, Section, Sounds, String, TextFrames, TrapPreset,

Preferences:

MarginPreference

Property Listing

Property

Type

Access

Description

allGraphics

Array of Graphic

readonly

Lists all graphics contained by the Page.

allPageItems

Array of PageItem

readonly

Lists all page items contained by the Page.

appliedMaster

MasterSpread

NothingEnum.NOTHING

read/write

The master spread applied to the Page. Can also accept: NothingEnum enumerator.

appliedSection

Section

readonly

The section to which the page belongs.

appliedTrapPreset

TrapPreset

String

read/write

The trap preset applied to the page. Can also accept: String.

bounds

Array of Number

Array of String

readonly

The bounds of the Page, in the format [y1, x1, y2, x2].

buttons

Buttons Button

readonly

A collection of buttons.

documentOffset

Number

readonly

The sequential number of the page within the document.

formFields

FormFields FormField

readonly

A collection of form fields.

graphicLines

GraphicLines GraphicLine

readonly

A collection of graphic lines.

groups

Groups Group

readonly

A collection of groups.

guides

Guides Guide

readonly

A collection of guides.

id

Number

readonly

The unique ID of the Page.

index

Number

readonly

The index of the Page within its containing object.

label

String

read/write

A property that can be set to any string.

marginPreferences

MarginPreference

readonly

Margin preference settings.

masterPageItems

Array of PageItems

Array of Graphics Graphic

Array of Guides Guide

Array of Movies

Array of Sounds Sound

readonly

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.

name

String

readonly

The name of the Page.

ovals

Ovals Oval

readonly

A collection of ellipses.

pageItems

PageItems PageItem

readonly

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.

parent

MasterSpread

Document

Spread

readonly

The parent of the Page (a Spread, MasterSpread or Document).

polygons

Polygons Polygon

readonly

A collection of polygons.

properties

Object

read/write

A property that allows setting of several properties at the same time.

rectangles

Rectangles Rectangle

readonly

A collection of rectangles.

side

PageSideOptions

PageSideOptions.LEFT_HAND

PageSideOptions.RIGHT_HAND

PageSideOptions.SINGLE_SIDED

readonly

The side of the binding spine on which to place the page within the spread.

tabOrder

Array of FormField

read/write

The order in which the focus moves to different form fields in the PDF when the tab key is pressed.

textFrames

TextFrames TextFrame

readonly

A collection of text frames.

Method Listing

undefined detach ()

Detaches an overridden master page item from the master page.

Page duplicate ([to:LocationOptions=LocationOptions], reference:Varies Page Spread)

Duplicates the page.

Parameter

Type

Description

to

LocationOptions

LocationOptions.AFTER

LocationOptions.AT_BEGINNING

LocationOptions.AT_END

LocationOptions.BEFORE

LocationOptions.UNKNOWN

The location at which to place the duplicate page relative to the reference object or within the document or spread. (Optional)

(default: LocationOptions.AT_END)

reference

Page

Spread

The reference object. Note: Required when the to value specifies before or after. Can accept: Page or Spread. (Optional)

String extractLabel (key:String)

Gets the label value associated with the specified key.

Parameter

Type

Description

key

String

The key.

Page getElements ()

Resolves the object specifier, creating an array of object references.

undefined insertLabel (key:String, value:String)

Sets the label to the value associated with the specified key.

Parameter

Type

Description

key

String

The key.

value

String

The value.

Page move ([to:LocationOptions=LocationOptions], reference:Varies Page Spread, [binding:BindingOptions=BindingOptions])

Moves the page.

Parameter

Type

Description

to

LocationOptions

LocationOptions.AFTER

LocationOptions.AT_BEGINNING

LocationOptions.AT_END

LocationOptions.BEFORE

LocationOptions.UNKNOWN

The new location of the page relative to the reference object or within the document or spread. (Optional)

(default: LocationOptions.AT_END)

reference

Page

Spread

The reference object. Note: Required when the to parameter value specifies before or after. Can accept: Page or Spread. (Optional)

binding

BindingOptions

BindingOptions.DEFAULT_VALUE

BindingOptions.LEFT_ALIGN

BindingOptions.RIGHT_ALIGN

The location of the binding spine in spreads. (Optional)

(default: BindingOptions.DEFAULT_VALUE)

Varies place (fileName:File, placePoint:Array of Number String, destinationLayer:Layer, [showingOptions:Boolean=Boolean], [autoflowing:Boolean=Boolean], withProperties:Object)

Places the file.

Parameter

Type

Description

fileName

File

The file to place

placePoint

Array of Number

Array of String

The point at which to place (Optional)

destinationLayer

Layer

The layer on which to place (Optional)

showingOptions

Boolean

Whether to display the import options dialog (Optional)

(default: false)

autoflowing

Boolean

Whether to autoflow placed text (Optional)

(default: false)

withProperties

Object

Initial values for properties of the placed object(s) (Optional)

PageItem placeXML (using:XMLElement, placePoint:Array of Number String, [autoflowing:Boolean=Boolean])

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.

Parameter

Type

Description

using

XMLElement

The XML element to place.

placePoint

Array of Number

Array of String

The point at which to place the object, specified in the format [x, y].

autoflowing

Boolean

If true, autoflows placed text. (Optional)

(default: false)

undefined remove ()

Deletes the Page.

undefined removeOverride ()

Removes the override from a previously overridden master page item.

PageItem setContent (using:String, relativeBasePath:String)

Replaces the content of XML element with content imported from a file.

Parameter

Type

Description

using

String

The file path to the import file.

relativeBasePath

String

Base path used to resolve relative paths. (Optional)

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

Bookmark.destination

LayoutWindow.activePage

HyperlinkPageDestination.destinationPage

Button.parent

FormField.parent

GraphicLine.parent

Group.parent

Guide.parent

MarginPreference.parent

Oval.parent

PageItem.parent

Polygon.parent

Rectangle.parent

TextFrame.parent

Section.pageStart

Return

Pages.add()

Page.duplicate()

Page.move()

Page.getElements()

Pages.anyItem()

Pages.everyItem()

Pages.nextItem()

Pages.previousItem()

Pages.itemByID()

Pages.item()

Pages.itemByName()

Pages.itemByRange()

Pages.firstItem()

Pages.lastItem()

Pages.middleItem()