
## 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".
If the specified `url` ends with ".svgz", the document will be saved as a compressed SVGZ file.



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


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | Local URL to output file. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `url` is not a valid local file URL. |




## 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".
If the specified `url` ends with ".svgz", the document will be saved as a compressed SVGZ file.



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


| Parameter | Type | Description |
| :- | :- | :- |
| path | str | Local path to output file. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `path` is not a valid local file path. |




## 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-aspose.html.dom.svg.saving.SVGSaveFormat}

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.dom.svg.saving.SVGSaveFormat | Format in which document is saved. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Raised if the specified `path` is not a valid local file path. |
| ArgumentOutOfRangeException | Thrown when the specified `save_format` value is not recognised by the current implementation. |




## save {#aspose.html.saving.resourcehandlers.ResourceHandler-aspose.html.dom.svg.saving.SVGSaveFormat}

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.dom.svg.saving.SVGSaveFormat | Format in which document is saved. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentOutOfRangeException | Thrown when the specified `save_format` value is not recognised by the current implementation. |




## save {#str-aspose.html.dom.svg.saving.SVGSaveOptions}

Saves the document as an `.svg` file to the local path specified by
`path`.  
Any external resources are written to a sibling folder named
`{output_file_name}_files`.



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


| Parameter | Type | Description |
| :- | :- | :- |
| path | str | Absolute or relative path of the target `.svg` file. |
| save_options | aspose.html.dom.svg.saving.SVGSaveOptions | Options that control plain-SVG serialization. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Thrown if `path` is not a valid local file path. |




## save {#aspose.html.saving.resourcehandlers.ResourceHandler-aspose.html.dom.svg.saving.SVGSaveOptions}

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.dom.svg.saving.SVGSaveOptions | SVG save options. |


## save {#aspose.html.Url-aspose.html.dom.svg.saving.SVGSaveFormat}

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.dom.svg.saving.SVGSaveFormat | Format in which document is saved. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Thrown when `url` does not represent a valid local file location (e.g., it is null, relative, or points to a non-file scheme). |
| ArgumentOutOfRangeException | Thrown when the supplied `save_format` value is not recognised by the current implementation. |




## save {#aspose.html.Url-aspose.html.dom.svg.saving.SVGSaveOptions}

Saves the document as an `.svg` file to `url`.
All external resources are placed in a sibling folder named
`{output_file_name}_files`.



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


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | Local path of the target `.svg` file. |
| save_options | aspose.html.dom.svg.saving.SVGSaveOptions | Options that control plain-SVG serialization. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Thrown if `url` is not a valid local file path. |




## save {#aspose.html.Url-aspose.html.dom.svg.saving.SVGZSaveOptions}

Saves the document as a compressed `.svgz` file to `url`.
All external resources are placed in a sibling folder named
`{output_file_name}_files`.



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


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/html/python-net/aspose.html/url) | Local path of the target `.svgz` file. |
| save_options | aspose.html.dom.svg.saving.SVGZSaveOptions | Options that control SVGZ serialization. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Thrown if `url` is not a valid local file path. |




## save {#aspose.html.saving.resourcehandlers.ResourceHandler-aspose.html.dom.svg.saving.SVGZSaveOptions}

Saves the document content and associated resources using the specified [`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 to manage document resources, such as file system or memory-based storage. |
| save_options | aspose.html.dom.svg.saving.SVGZSaveOptions | Options that specify additional saving parameters, such as vectorization preferences. |


## save {#str-aspose.html.dom.svg.saving.SVGZSaveOptions}

Saves the document as a compressed `.svgz` file to the local path specified by
`path`.
Any external resources are written to a sibling folder named
`{output_file_name}_files`.



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


| Parameter | Type | Description |
| :- | :- | :- |
| path | str | Absolute or relative path of the target `.svgz` file. |
| save_options | aspose.html.dom.svg.saving.SVGZSaveOptions | Options that control SVGZ serialization. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Thrown if `path` is not a valid local file path. |





### See Also
* module [`aspose.html.dom.svg`](../../)
* class [`ResourceHandler`](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler)
* class [`SVGDocument`](/html/python-net/aspose.html.dom.svg/svgdocument)
