
## XpsDevice class

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

**Inheritance:** `XpsDevice` → [`Device`](/tex/python-net/aspose.tex.presentation/device)

The XpsDevice type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
| `XpsDevice()` | Creates a new instance.<br/>            The output file will be written to the output working<br/>            directory taking the job name as a file name. |
| `XpsDevice(stream)` | Initializes a new instance of the XpsDevice class |
## Properties
| Name | Description |
| :- | :- |
| `page_count` | Gets the number of pages. |
## Methods
| Name | Description |
| :- | :- |
| `add_bookmark(name, position)` | Adds the bookmark identified by the name. |
| `start_fragment()` | Starts a fragment to rasterize. |
| `end_fragment()` | Ends a fragment to rasterize. |

### See Also

* module [`aspose.tex.presentation.xps`](/tex/python-net/aspose.tex.presentation.xps/)
* package [`aspose.tex`](/tex/python-net/)

