add_page method

add_page

Adds an empty page to the document with default page size.

Returns

Added page.

def add_page(self, activate):
    ...
ParameterTypeDescription
activateboolFlag indicating whether to select added page as active.

add_page

Adds a page to the document.

Returns

Added page.

def add_page(self, page, activate):
    ...
ParameterTypeDescription
pageaspose.page.xps.xpsmodel.XpsPagePage to be added.
activateboolFlag indicating whether to select added page as active.

add_page

Adds an empty page to the document with specified width and height.

Returns

Added page.

def add_page(self, width, height, activate):
    ...
ParameterTypeDescription
widthfloatWidth of a new page.
heightfloatHeight of a new page.
activateboolFlag indicating whether to select added page as active.

See Also