Aspose::Page::XPS::XpsDocument::AddDocument 方法
XpsDocument::AddDocument(bool) method
添加一个具有默认页面尺寸的空文档。
void Aspose::Page::XPS::XpsDocument::AddDocument(bool activate=true)
| Parameter | Type | 描述 |
|---|---|---|
| 激活 | bool | 标志,指示是否将添加的文档设为活动状态。 |
另见
- Class XpsDocument
- Namespace Aspose::Page::XPS
- Library Aspose.Page for C++
XpsDocument::AddDocument(float, float, bool) method
添加一个空文档,其第一页尺寸为 width 和 height。
void Aspose::Page::XPS::XpsDocument::AddDocument(float width, float height, bool activate=true)
| Parameter | Type | 描述 |
|---|---|---|
| width | 单精度浮点数 | 第一页的宽度。 |
| height | 单精度浮点数 | 第一页的高度。 |
| 激活 | bool | 标志,指示是否将添加的文档设为活动状态。 |
另见
- Class XpsDocument
- Namespace Aspose::Page::XPS
- Library Aspose.Page for C++