## AddDocument(bool) {#adddocument}

Adds an empty document with default page size.

```csharp
public void AddDocument(bool activate = true)
```

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

### See Also

* class [XpsDocument](../)
* namespace [Aspose.Page.XPS](../../xpsdocument/)
* assembly [Aspose.Page](../../../)

---

## AddDocument(float, float, bool) {#adddocument_1}

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

```csharp
public void AddDocument(float width, float height, bool activate = true)
```

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

### See Also

* class [XpsDocument](../)
* namespace [Aspose.Page.XPS](../../xpsdocument/)
* assembly [Aspose.Page](../../../)


