## XpsDevice class

Implements the interface for outputting text and graphic content to XPS document.

```csharp
public class XpsDevice : Device
```

## Constructors

| Name | Description |
| --- | --- |
| [XpsDevice](xpsdevice/#constructor)() | Creates a new instance. The output file will be written to the output working directory taking the job name as a file name. |
| [XpsDevice](xpsdevice/#constructor_1)(Stream) | Creates a new instance. The output file will be written to specified stream. |

## Properties

| Name | Description |
| --- | --- |
| override [PageCount](../../aspose.tex.presentation.xps/xpsdevice/pagecount/) { get; } | Gets the number of pages. |

## Methods

| Name | Description |
| --- | --- |
| [AddBookmark](../../aspose.tex.presentation.xps/xpsdevice/addbookmark/)(string, PointF) | Adds the bookmark identified by the name. |
| [EndFragment](../../aspose.tex.presentation.xps/xpsdevice/endfragment/)() | Ends a fragment to rasterize. |
| [StartFragment](../../aspose.tex.presentation.xps/xpsdevice/startfragment/)() | Starts a fragment to rasterize. |

### See Also

* class [Device](../../aspose.tex.presentation/device/)
* namespace [Aspose.TeX.Presentation.Xps](../../aspose.tex.presentation.xps/)
* assembly [Aspose.TeX](../../)


