The following routines are used to add new pages to your document, or set the "current" page, where subsequent text and graphic elements will be placed:
newPage
Create a new page
setPage
Set the "current" page
Page 0 of each document is the document's master page. The master page is the default "current" page of a newly created document, or one that has been cleared by a call to reset
. Any text or graphic element added to the master page will be drawn on every page of the document, beneath the contents of each individual page. Calling setPage
with a value of 0 will set the master page as the current page of the document.