
## XpsDevice class

Represents rendering to a xps document.



**Inheritance:** [`XpsDevice`](/svg/python-net/aspose.svg.rendering.xps/xpsdevice) → 
[`Device`](/svg/python-net/aspose.svg.rendering/device)



The XpsDevice type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/__init__/#aspose.svg.io.ICreateStreamProvider) | Initializes a new instance of the [`XpsDevice`](/svg/python-net/aspose.svg.rendering.xps/xpsdevice) class. |
| [__init__](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/__init__/#aspose.svg.rendering.xps.XpsRenderingOptions-aspose.svg.io.ICreateStreamProvider) | Initializes a new instance of the [`XpsDevice`](/svg/python-net/aspose.svg.rendering.xps/xpsdevice) class by rendering options and stream provider. |
| [__init__](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/__init__/#str) | Initializes a new instance of the [`XpsDevice`](/svg/python-net/aspose.svg.rendering.xps/xpsdevice) class. |
| [__init__](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/__init__/#aspose.svg.rendering.xps.XpsRenderingOptions-str) | Initializes a new instance of the [`XpsDevice`](/svg/python-net/aspose.svg.rendering.xps/xpsdevice) class by rendering options and output file name. |
| [__init__](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/__init__/#io.RawIOBase) | Initializes a new instance of the [`XpsDevice`](/svg/python-net/aspose.svg.rendering.xps/xpsdevice) class. |
| [__init__](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/__init__/#aspose.svg.rendering.xps.XpsRenderingOptions-io.RawIOBase) | Initializes a new instance of the [`XpsDevice`](/svg/python-net/aspose.svg.rendering.xps/xpsdevice) class by rendering options and output stream. |


### Properties
| Property | Description |
| :- | :- |
| [options](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/options) |  |
| [graphic_context](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/graphic_context) |  |


### Methods
| Method | Description |
| :- | :- |
| [save_graphic_context](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/save_graphic_context/#) |  |
| [restore_graphic_context](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/restore_graphic_context/#) |  |
| [begin_document](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/begin_document/#aspose.svg.dom.Document) |  |
| [end_document](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/end_document/#) |  |
| [begin_page](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/begin_page/#aspose.pydrawing.SizeF) |  |
| [end_page](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/end_page/#) |  |
| [flush](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/flush/#) |  |
| [begin_element](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/begin_element/#aspose.svg.dom.Element-aspose.pydrawing.RectangleF) |  |
| [end_element](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/end_element/#aspose.svg.dom.Element) |  |
| [close_path](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/close_path/#) |  |
| [move_to](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/move_to/#aspose.pydrawing.PointF) |  |
| [line_to](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/line_to/#aspose.pydrawing.PointF) |  |
| [add_rect](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/add_rect/#aspose.pydrawing.RectangleF) |  |
| [cubic_bezier_to](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/cubic_bezier_to/#aspose.pydrawing.PointF-aspose.pydrawing.PointF-aspose.pydrawing.PointF) |  |
| [stroke](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/stroke/#) |  |
| [fill](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/fill/#aspose.svg.drawing.FillRule) |  |
| [clip](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/clip/#aspose.svg.drawing.FillRule) |  |
| [stroke_and_fill](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/stroke_and_fill/#aspose.svg.drawing.FillRule) |  |
| [fill_text](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/fill_text/#str-aspose.pydrawing.PointF) |  |
| [stroke_text](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/stroke_text/#str-aspose.pydrawing.PointF) |  |
| [draw_image](/svg/python-net/aspose.svg.rendering.xps/xpsdevice/draw_image/#bytes-aspose.svg.drawing.WebImageFormat-aspose.pydrawing.RectangleF) |  |



### See Also
* module [`aspose.svg.rendering.xps`](..)
* class [`Device`](/svg/python-net/aspose.svg.rendering/device)
* class [`XpsDevice`](/svg/python-net/aspose.svg.rendering.xps/xpsdevice)
