
## __init__ {#aspose.html.io.ICreateStreamProvider}

Initializes a new instance of the [`XpsDevice`](/html/python-net/aspose.html.rendering.xps/xpsdevice) class.



```python
def __init__(self, stream_provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream_provider | aspose.html.io.ICreateStreamProvider | The stream provider. |


## __init__ {#str}

Initializes a new instance of the [`XpsDevice`](/html/python-net/aspose.html.rendering.xps/xpsdevice) class.



```python
def __init__(self, file):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| file | str | The output file name. |


## __init__ {#io.RawIOBase}

Initializes a new instance of the [`XpsDevice`](/html/python-net/aspose.html.rendering.xps/xpsdevice) class.



```python
def __init__(self, stream):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | The stream. |


## __init__ {#aspose.html.rendering.xps.XpsRenderingOptions-aspose.html.io.ICreateStreamProvider}

Initializes a new instance of the [`XpsDevice`](/html/python-net/aspose.html.rendering.xps/xpsdevice) class by rendering options and stream provider.



```python
def __init__(self, options, stream_provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| options | [`XpsRenderingOptions`](/html/python-net/aspose.html.rendering.xps/xpsrenderingoptions) | Rendering options. |
| stream_provider | aspose.html.io.ICreateStreamProvider | Object that implements the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface |


## __init__ {#aspose.html.rendering.xps.XpsRenderingOptions-str}

Initializes a new instance of the [`XpsDevice`](/html/python-net/aspose.html.rendering.xps/xpsdevice) class by rendering options and output file name.



```python
def __init__(self, options, file):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| options | [`XpsRenderingOptions`](/html/python-net/aspose.html.rendering.xps/xpsrenderingoptions) | Rendering options. |
| file | str | The output file name. |


## __init__ {#aspose.html.rendering.xps.XpsRenderingOptions-io.RawIOBase}

Initializes a new instance of the [`XpsDevice`](/html/python-net/aspose.html.rendering.xps/xpsdevice) class by rendering options and output stream.



```python
def __init__(self, options, stream):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| options | [`XpsRenderingOptions`](/html/python-net/aspose.html.rendering.xps/xpsrenderingoptions) | Rendering options. |
| stream | io.RawIOBase | The output stream. |



### See Also
* module [`aspose.html.rendering.xps`](../../)
* class [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider)
* class [`XpsDevice`](/html/python-net/aspose.html.rendering.xps/xpsdevice)
