addPage([location])

Adds a new page to the document. Set the optional location parameter to either AT_END (default), AT_BEGINNING, AFTER or BEFORE. AFTER and BEFORE will use the current page as insertion point.

Type: function

Parameter(s):

  • location {String} Optional:

    The location placement mode.

Returns:

  • {Page}:

    The new page.