
## save {#aspose.html.Url}

Saves the document to local file specified by `url`. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".



```python
def save(self, url):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | Local URL to output file. |
### Remarks

Most of the tasks, you need to perform, require saving a document.
Once you load the existing file or create an HTML document from scratch, you can save your changes using one of HTMLDocument.Save() methods.
The methods allow saving HTML to a local file specified by path, URL, or output storage.
Refer to the [documentation](https://docs.aspose.com/html/net/save-html-document/) to learn more about saving.### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `url` is not a valid local file URL. |




## save {#aspose.html.saving.resourcehandlers.ResourceHandler}

Saves the document content and resources using the [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler).



```python
def save(self, resource_handler):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| resource_handler | aspose.html.saving.resourcehandlers.ResourceHandler | The resource handler [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler). |


## save {#str}

Saves the document to local file specified by `path`. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".



```python
def save(self, path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| path | str | Local path to output file. |
### Remarks

Most of the tasks, you need to perform, require saving a document.
Once you load the existing file or create an HTML document from scratch, you can save your changes using one of HTMLDocument.Save() methods.
The methods allow saving HTML to a local file specified by path, URL, or output storage.
Refer to the [documentation](https://docs.aspose.com/html/net/save-html-document/) to learn more about saving.### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `path` is not a valid local file path. |




## save {#str-aspose.html.saving.HTMLSaveFormat}

Saves the document to local file specified by `path`. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".



```python
def save(self, path, save_format):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| path | str | Local path to output file. |
| save_format | aspose.html.saving.HTMLSaveFormat | Format in which document is saved. |
### Remarks

Most of the tasks, you need to perform, require saving a document.
Once you load the existing file or create an HTML document from scratch, you can save your changes using one of HTMLDocument.Save() methods.
The methods allow saving HTML to a local file specified by path, URL, or output storage.
Refer to the [documentation](https://docs.aspose.com/html/net/save-html-document/) to learn more about saving.### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `path` is not a valid local file path. |




## save {#aspose.html.Url-aspose.html.saving.HTMLSaveFormat}

Saves the document to local file specified by `url`. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".



```python
def save(self, url, save_format):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | Local URL to output file. |
| save_format | aspose.html.saving.HTMLSaveFormat | Format in which document is saved. |
### Remarks

Most of the tasks, you need to perform, require saving a document.
Once you load the existing file or create an HTML document from scratch, you can save your changes using one of HTMLDocument.Save() methods.
The methods allow saving HTML to a local file specified by path, URL, or output storage.
Refer to the [documentation](https://docs.aspose.com/html/net/save-html-document/) to learn more about saving.### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `url` is not a valid local file URL. |




## save {#aspose.html.saving.resourcehandlers.ResourceHandler-aspose.html.saving.HTMLSaveFormat}

Saves the document content and resources using the [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler).



```python
def save(self, resource_handler, save_format):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| resource_handler | aspose.html.saving.resourcehandlers.ResourceHandler | The resource handler [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler). |
| save_format | aspose.html.saving.HTMLSaveFormat | Format in which document is saved. |


## save {#str-aspose.html.saving.HTMLSaveOptions}

Saves the document to local file specified by `path`. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".



```python
def save(self, path, save_options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| path | str | Local path to output file. |
| save_options | aspose.html.saving.HTMLSaveOptions | HTML save options. |
### Remarks

Most of the tasks, you need to perform, require saving a document.
Once you load the existing file or create an HTML document from scratch, you can save your changes using one of HTMLDocument.Save() methods.
The methods allow saving HTML to a local file specified by path, URL, or output storage.
Refer to the [documentation](https://docs.aspose.com/html/net/save-html-document/) to learn more about saving.### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `path` is not a valid local file path. |




## save {#aspose.html.Url-aspose.html.saving.HTMLSaveOptions}

Saves the document to local file specified by `url`. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".



```python
def save(self, url, save_options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | Local URL to output file. |
| save_options | aspose.html.saving.HTMLSaveOptions | HTML save options. |
### Remarks

Most of the tasks, you need to perform, require saving a document.
Once you load the existing file or create an HTML document from scratch, you can save your changes using one of HTMLDocument.Save() methods.
The methods allow saving HTML to a local file specified by path, URL, or output storage.
Refer to the [documentation](https://docs.aspose.com/html/net/save-html-document/) to learn more about saving.### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `url` is not a valid local file URL. |




## save {#aspose.html.saving.resourcehandlers.ResourceHandler-aspose.html.saving.HTMLSaveOptions}

Saves the document content and resources using the [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler).



```python
def save(self, resource_handler, save_options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| resource_handler | aspose.html.saving.resourcehandlers.ResourceHandler | The resource handler [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler). |
| save_options | aspose.html.saving.HTMLSaveOptions | HTML save options. |


## save {#str-aspose.html.saving.MarkdownSaveOptions}

Saves the document to local file specified by `path`. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".



```python
def save(self, path, save_options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| path | str | Local path to output file. |
| save_options | aspose.html.saving.MarkdownSaveOptions | Markdown save options. |
### Remarks

Most of the tasks, you need to perform, require saving a document.
Once you load the existing file or create an HTML document from scratch, you can save your changes using one of HTMLDocument.Save() methods.
The methods allow saving HTML to a local file specified by path, URL, or output storage.
Refer to the [documentation](https://docs.aspose.com/html/net/save-html-document/) to learn more about saving.### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `path` is not a valid local file path. |




## save {#aspose.html.Url-aspose.html.saving.MarkdownSaveOptions}

Saves the document to local file specified by `url`. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".



```python
def save(self, url, save_options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | Local URL to output file. |
| save_options | aspose.html.saving.MarkdownSaveOptions | Markdown save options. |
### Remarks

Most of the tasks, you need to perform, require saving a document.
Once you load the existing file or create an HTML document from scratch, you can save your changes using one of HTMLDocument.Save() methods.
The methods allow saving HTML to a local file specified by path, URL, or output storage.
Refer to the [documentation](https://docs.aspose.com/html/net/save-html-document/) to learn more about saving.### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `url` is not a valid local file URL. |




## save {#aspose.html.saving.resourcehandlers.ResourceHandler-aspose.html.saving.MarkdownSaveOptions}

Saves the document content and resources using the [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler).



```python
def save(self, resource_handler, save_options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| resource_handler | aspose.html.saving.resourcehandlers.ResourceHandler | The resource handler [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler). |
| save_options | aspose.html.saving.MarkdownSaveOptions | Markdown save options. |


## save {#str-aspose.html.saving.MHTMLSaveOptions}

Saves the document to local file specified by `path`. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".



```python
def save(self, path, save_options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| path | str | Local path to output file. |
| save_options | aspose.html.saving.MHTMLSaveOptions | MHTML save options. |
### Remarks

Most of the tasks, you need to perform, require saving a document.
Once you load the existing file or create an HTML document from scratch, you can save your changes using one of HTMLDocument.Save() methods.
The methods allow saving HTML to a local file specified by path, URL, or output storage.
Refer to the [documentation](https://docs.aspose.com/html/net/save-html-document/) to learn more about saving.### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `path` is not a valid local file path. |




## save {#aspose.html.Url-aspose.html.saving.MHTMLSaveOptions}

Saves the document to local file specified by `url`. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".



```python
def save(self, url, save_options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | Local URL to output file. |
| save_options | aspose.html.saving.MHTMLSaveOptions | MHTML save options. |
### Remarks

Most of the tasks, you need to perform, require saving a document.
Once you load the existing file or create an HTML document from scratch, you can save your changes using one of HTMLDocument.Save() methods.
The methods allow saving HTML to a local file specified by path, URL, or output storage.
Refer to the [documentation](https://docs.aspose.com/html/net/save-html-document/) to learn more about saving.### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `url` is not a valid local file URL. |




## save {#aspose.html.saving.resourcehandlers.ResourceHandler-aspose.html.saving.MHTMLSaveOptions}

Saves the document content and resources using the [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler).



```python
def save(self, resource_handler, save_options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| resource_handler | aspose.html.saving.resourcehandlers.ResourceHandler | The resource handler [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler). |
| save_options | aspose.html.saving.MHTMLSaveOptions | MHTML save options. |



### See Also
* module [`aspose.html`](../../)
* class [`HTMLDocument`](/html/python-net/aspose.html/htmldocument)
* class [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler)
