Aspose::Page::XPS::XpsDocument::AddDocument 方法

XpsDocument::AddDocument(bool) method

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

void Aspose::Page::XPS::XpsDocument::AddDocument(bool activate=true)
ParameterType描述
激活bool标志,指示是否将添加的文档设为活动状态。

另见

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

添加一个空文档,其第一页尺寸为 widthheight

void Aspose::Page::XPS::XpsDocument::AddDocument(float width, float height, bool activate=true)
ParameterType描述
width单精度浮点数第一页的宽度。
height单精度浮点数第一页的高度。
激活bool标志,指示是否将添加的文档设为活动状态。

另见