## XpsDocument::AddDocument(bool) method


Adds an empty document with default page size.

```cpp
void Aspose::Page::XPS::XpsDocument::AddDocument(bool activate=true)
```


| Parameter | Type | Description |
| --- | --- | --- |
| activate | bool | Flag indicating whether to select added document as active. |

## See Also

* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
## XpsDocument::AddDocument(float, float, bool) method


Adds an empty document with the first page dimensions *width*  and *height* .

```cpp
void Aspose::Page::XPS::XpsDocument::AddDocument(float width, float height, bool activate=true)
```


| Parameter | Type | Description |
| --- | --- | --- |
| width | float | Width of the first page. |
| height | float | Height of the first page. |
| activate | bool | Flag indicating whether to select added document as active. |

## See Also

* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
