Aspose::Page::XPS::XpsDocument::AddPage 方法

XpsDocument::AddPage(bool) method

向文档添加一个具有默认页面尺寸的空页。

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::AddPage(bool activate=true)
ParameterType描述
激活bool标志,指示是否将添加的页面设为活动页面。

ReturnValue

已添加页面。

另见

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

向文档添加一个空页,指定 widthheight

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::AddPage(float width, float height, bool activate=true)
ParameterType描述
width单精度浮点数新页面的宽度。
height单精度浮点数新页面的高度。
激活bool标志,指示是否将添加的页面设为活动页面。

ReturnValue

已添加页面。

另见

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

向文档添加一页。

System::SharedPtr<XpsModel::XpsPage> Aspose::Page::XPS::XpsDocument::AddPage(System::SharedPtr<XpsModel::XpsPage> page, bool activate=true)
ParameterType描述
pageSystem::SharedPtr<XpsModel::XpsPage>Page 待添加。
激活bool标志,指示是否将添加的页面设为活动页面。

ReturnValue

已添加页面。

另见