Pages

A collection of pages.

Methods:

add, count

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Page add ([at:LocationOptions=LocationOptions], reference:Varies MasterSpread Page Spread Document, withProperties:Object)

Creates a new page.

Parameter

Type

Description

at

LocationOptions

LocationOptions.AFTER

LocationOptions.AT_BEGINNING

LocationOptions.AT_END

LocationOptions.BEFORE

LocationOptions.UNKNOWN

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

(default: LocationOptions.UNKNOWN)

reference

MasterSpread

Page

Spread

Document

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

withProperties

Object

Initial values for properties of the new Page (Optional)

Number count ()

Displays the number of elements in the Page.

Object of

Document.pages

Spread.pages

MasterSpread.pages