insert_page method

insert_page

Inserts an empty page to the document with default page size at index position.

Returns

Inserted page.

def insert_page(self, index, activate):
    ...
ParameterTypeDescription
indexintPosition at which a page should be inserted.
activateboolFlag indicating whether to select inserted page as active.

insert_page

Inserts a page to the document at index position.

Returns

Inserted page.

def insert_page(self, index, page, activate):
    ...
ParameterTypeDescription
indexintPosition at which a page should be added.
pageaspose.page.xps.xpsmodel.XpsPagePage to be inserted.
activateboolFlag indicating whether to select inserted page as active.

insert_page

Inserts an empty page to the document with specified width and height at index position.

Returns

Inserted page.

def insert_page(self, index, width, height, activate):
    ...
ParameterTypeDescription
indexintPosition at which a page should be inserted.
widthfloatWidth of a new page.
heightfloatHeight of a new page.
activateboolFlag indicating whether to select inserted page as active.

See Also