GetPage()

Example 1:

To return a page object into a variable named page, use the following syntax:

var page = GetPage("page 1")
// this gets the page object via the Name
var page = GetPage(0)
// this gets the page via the Index and returns the first
// page in the publication

Example 2:

The returned page object can be used with OpusScript functions related to the page. For example, to print the first page in the publication, use the following syntax:

var firstPage = GetPage(0)
PrintPage(firstPage,true)

Close