Aspose::Page::XPS::XpsDocument::InsertPage method

XpsDocument::InsertPage(int32_t, bool) method

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

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::InsertPage(int32_t index, bool activate=true)
ParameterTypeDescription
indexint32_tPosition at which a page should be inserted.
activateboolFlag indicating whether to select inserted page as active.

ReturnValue

Inserted page.

See Also

XpsDocument::InsertPage(int32_t, float, float, bool) method

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

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::InsertPage(int32_t index, float width, float height, bool activate=true)
ParameterTypeDescription
indexint32_tPosition 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.

ReturnValue

Inserted page.

See Also

XpsDocument::InsertPage(int32_t, System::SharedPtr<XpsModel::XpsPage>, bool) method

Inserts a page to the document at index position.

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::InsertPage(int32_t index, System::SharedPtr<XpsModel::XpsPage> page, bool activate=true)
ParameterTypeDescription
indexint32_tPosition at which a page should be added.
pageSystem::SharedPtr<XpsModel::XpsPage>Page to be inserted.
activateboolFlag indicating whether to select inserted page as active.

ReturnValue

Inserted page.

See Also