Aspose::Page::XPS::XpsDocument::AddPage method

XpsDocument::AddPage(bool) method

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

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::AddPage(bool activate=true)
ParameterTypeDescription
activateboolFlag indicating whether to select added page as active.

ReturnValue

Added page.

See Also

XpsDocument::AddPage(float, float, bool) method

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

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::AddPage(float width, float height, bool activate=true)
ParameterTypeDescription
widthfloatWidth of a new page.
heightfloatHeight of a new page.
activateboolFlag indicating whether to select added page as active.

ReturnValue

Added page.

See Also

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

Adds a page to the document.

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::AddPage(System::SharedPtr<XpsModel::XpsPage> page, bool activate=true)
ParameterTypeDescription
pageSystem::SharedPtr<XpsModel::XpsPage>Page to be added.
activateboolFlag indicating whether to select added page as active.

ReturnValue

Added page.

See Also