
## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.PdfSaveOptions-str}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, document, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source [`HTMLDocument`](/html/python-net/aspose.html/htmldocument). |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.saving.PdfSaveOptions-str}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, url, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.saving.PdfSaveOptions-str}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, source_path, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.PdfSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, document, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source [`HTMLDocument`](/html/python-net/aspose.html/htmldocument). |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.Url-aspose.html.saving.PdfSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, url, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-aspose.html.saving.PdfSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, source_path, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.MHTMLSaveOptions-str}

Convert html document to mhtml. Result is mhtml file.



```python
def convert_html(self, document, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source. |
| options | aspose.html.saving.MHTMLSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.saving.MHTMLSaveOptions-str}

Convert html document to mhtml. Result is mhtml file.



```python
def convert_html(self, url, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.MHTMLSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.saving.MHTMLSaveOptions-str}

Convert html document to mhtml. Result is mhtml file.



```python
def convert_html(self, source_path, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.MHTMLSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.MarkdownSaveOptions-str}

Convert html document to markdown. Result is md file.



```python
def convert_html(self, document, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source. |
| options | aspose.html.saving.MarkdownSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.saving.MarkdownSaveOptions-str}

Convert html source to markdown. Result is md file.



```python
def convert_html(self, url, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.MarkdownSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.saving.MarkdownSaveOptions-str}

Convert html source to markdown. Result is md file.



```python
def convert_html(self, source_path, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.MarkdownSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.XpsSaveOptions-str}

Convert html document to xps. Result is xps file.



```python
def convert_html(self, document, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.saving.XpsSaveOptions-str}

Convert html document to xps. Result is xps file.



```python
def convert_html(self, url, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.saving.XpsSaveOptions-str}

Convert html document to xps. Result is xps file.



```python
def convert_html(self, source_path, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.XpsSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to xps. Result is xps file.



```python
def convert_html(self, document, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.Url-aspose.html.saving.XpsSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to xps. Result is xps file.



```python
def convert_html(self, url, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-aspose.html.saving.XpsSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to xps. Result is xps file.



```python
def convert_html(self, source_path, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.ImageSaveOptions-str}

Convert html document to image. Result is image file.



```python
def convert_html(self, document, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.saving.ImageSaveOptions-str}

Convert html document to image. Result is image file.



```python
def convert_html(self, url, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.saving.ImageSaveOptions-str}

Convert html document to image. Result is image file.



```python
def convert_html(self, source_path, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.ImageSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to image. Result is image file.



```python
def convert_html(self, document, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.Url-aspose.html.saving.ImageSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to image. Result is image file.



```python
def convert_html(self, url, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-aspose.html.saving.ImageSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to image. Result is image file.



```python
def convert_html(self, source_path, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.TextSaveOptions-str}

Convert html document to text. Result is TXT file.



```python
def convert_html(self, document, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source. |
| options | aspose.html.saving.TextSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.saving.TextSaveOptions-str}

Convert html document to text. Result is TXT file.



```python
def convert_html(self, url, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.TextSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.saving.TextSaveOptions-str}

Convert html document to text. Result is TXT file.



```python
def convert_html(self, source_path, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.TextSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.DocSaveOptions-str}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, document, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source [`HTMLDocument`](/html/python-net/aspose.html/htmldocument). |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.saving.DocSaveOptions-str}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, url, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.saving.DocSaveOptions-str}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, source_path, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | HTML file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.HTMLDocument-aspose.html.saving.DocSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, document, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| document | [`HTMLDocument`](/html/python-net/aspose.html/htmldocument) | Conversion source [`HTMLDocument`](/html/python-net/aspose.html/htmldocument). |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.Url-aspose.html.saving.DocSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, url, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-aspose.html.saving.DocSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, source_path, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | HTML file source path. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.PdfSaveOptions-str}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, url, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.PdfSaveOptions-str}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, source_path, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.saving.PdfSaveOptions-str}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, content, base_uri, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.PdfSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, url, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.PdfSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, source_path, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-str-aspose.html.saving.PdfSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, content, base_uri, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.MHTMLSaveOptions-str}

Convert html document to mhtml. Result is mhtml file.



```python
def convert_html(self, url, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.MHTMLSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.MHTMLSaveOptions-str}

Convert html document to mhtml. Result is mhtml file.



```python
def convert_html(self, source_path, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.MHTMLSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.saving.MHTMLSaveOptions-str}

Convert html document to mhtml. Result is mhtml file.



```python
def convert_html(self, content, base_uri, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.MHTMLSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.MarkdownSaveOptions-str}

Convert html source to markdown. Result is md file.



```python
def convert_html(self, url, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.MarkdownSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.MarkdownSaveOptions-str}

Convert html source to markdown. Result is md file.



```python
def convert_html(self, source_path, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.MarkdownSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.saving.MarkdownSaveOptions-str}

Convert html source to markdown. Result is md file.



```python
def convert_html(self, content, base_uri, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.MarkdownSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#io.RawIOBase-aspose.html.Configuration-aspose.html.saving.MarkdownSaveOptions-str}

Convert HTML source stream to markdown. Result is md file.



```python
def convert_html(self, stream, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | HTML source stream. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.MarkdownSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#io.RawIOBase-str-aspose.html.saving.MarkdownSaveOptions-str}

Convert HTML source stream to markdown. Result is md file.



```python
def convert_html(self, stream, base_uri, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | HTML source stream. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.MarkdownSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.XpsSaveOptions-str}

Convert html document to xps. Result is xps file.



```python
def convert_html(self, url, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.XpsSaveOptions-str}

Convert html document to xps. Result is xps file.



```python
def convert_html(self, source_path, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.saving.XpsSaveOptions-str}

Convert html document to xps. Result is xps file.



```python
def convert_html(self, content, base_uri, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.XpsSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to xps. Result is xps file.



```python
def convert_html(self, url, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.XpsSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to xps. Result is xps file.



```python
def convert_html(self, source_path, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-str-aspose.html.saving.XpsSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to xps. Result is xps file.



```python
def convert_html(self, content, base_uri, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.ImageSaveOptions-str}

Convert html document to image. Result is image file.



```python
def convert_html(self, url, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.ImageSaveOptions-str}

Convert html document to image. Result is image file.



```python
def convert_html(self, source_path, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.saving.ImageSaveOptions-str}

Convert html document to image. Result is image file.



```python
def convert_html(self, content, base_uri, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.ImageSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to image. Result is image file.



```python
def convert_html(self, url, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.ImageSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to image. Result is image file.



```python
def convert_html(self, source_path, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-str-aspose.html.saving.ImageSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to image. Result is image file.



```python
def convert_html(self, content, base_uri, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.TextSaveOptions-str}

Convert html document to text. Result is TXT file.



```python
def convert_html(self, url, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.TextSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.TextSaveOptions-str}

Convert html document to text. Result is TXT file.



```python
def convert_html(self, source_path, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | Html file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.TextSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.saving.TextSaveOptions-str}

Convert html document to text. Result is TXT file.



```python
def convert_html(self, content, base_uri, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.TextSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.DocSaveOptions-str}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, url, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.DocSaveOptions-str}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, source_path, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | HTML file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.saving.DocSaveOptions-str}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, content, base_uri, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string HTML content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#aspose.html.Url-aspose.html.Configuration-aspose.html.saving.DocSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, url, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | The document URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-aspose.html.Configuration-aspose.html.saving.DocSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, source_path, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| source_path | str | HTML file source path. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-str-aspose.html.saving.DocSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, content, base_uri, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string HTML content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.PdfSaveOptions-str}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, content, base_uri, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.PdfSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source document to PDF. Result is pdf file.



```python
def convert_html(self, content, base_uri, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.PdfSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.MHTMLSaveOptions-str}

Convert html document to mhtml. Result is mhtml file.



```python
def convert_html(self, content, base_uri, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.MHTMLSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.MarkdownSaveOptions-str}

Convert html source to markdown. Result is md file.



```python
def convert_html(self, content, base_uri, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.MarkdownSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#io.RawIOBase-str-aspose.html.Configuration-aspose.html.saving.MarkdownSaveOptions-str}

Convert HTML source stream to markdown. Result is md file.



```python
def convert_html(self, stream, base_uri, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | HTML source stream. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.MarkdownSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.XpsSaveOptions-str}

Convert html document to xps. Result is xps file.



```python
def convert_html(self, content, base_uri, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.XpsSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to xps. Result is xps file.



```python
def convert_html(self, content, base_uri, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.XpsSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.ImageSaveOptions-str}

Convert html document to image. Result is image file.



```python
def convert_html(self, content, base_uri, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.ImageSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert html source to image. Result is image file.



```python
def convert_html(self, content, base_uri, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.ImageSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.TextSaveOptions-str}

Convert html document to text. Result is TXT file.



```python
def convert_html(self, content, base_uri, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.TextSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.DocSaveOptions-str}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, content, base_uri, configuration, options, output_path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string html content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| output_path | str | Output file path. |


## convert_html {#str-str-aspose.html.Configuration-aspose.html.saving.DocSaveOptions-aspose.html.io.ICreateStreamProvider}

Convert HTML source document to DOCX. Result is docx file.



```python
def convert_html(self, content, base_uri, configuration, options, provider):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | Inline string HTML content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/html/python-net/aspose.html/configuration) | The environment configuration. |
| options | aspose.html.saving.DocSaveOptions | Conversion options. |
| provider | aspose.html.io.ICreateStreamProvider | Implementation of the [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider) interface, which will be used to get an output stream. |



### See Also
* module [`aspose.html.converters`](../../)
* class [`Converter`](/html/python-net/aspose.html.converters/converter)
* class [`HTMLDocument`](/html/python-net/aspose.html/htmldocument)
* class [`ICreateStreamProvider`](/html/python-net/aspose.html.io/icreatestreamprovider)
