save method

save

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”.

def save(self, url):
    ...
ParameterTypeDescription
urlUrlLocal 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 to learn more about saving.### Exceptions

ExceptionDescription
ArgumentExceptionRaised if the specified url is not a valid local file URL.

save

Saves the document content and resources using the ResourceHandler.

def save(self, resource_handler):
    ...
ParameterTypeDescription
resource_handleraspose.html.saving.resourcehandlers.ResourceHandlerThe resource handler ResourceHandler.

save

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”.

def save(self, path):
    ...
ParameterTypeDescription
pathstrLocal 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 to learn more about saving.### Exceptions

ExceptionDescription
ArgumentExceptionRaised if the specified path is not a valid local file path.

save

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”.

def save(self, path, save_format):
    ...
ParameterTypeDescription
pathstrLocal path to output file.
save_formataspose.html.saving.HTMLSaveFormatFormat 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 to learn more about saving.### Exceptions

ExceptionDescription
ArgumentExceptionRaised if the specified path is not a valid local file path.

save

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”.

def save(self, url, save_format):
    ...
ParameterTypeDescription
urlUrlLocal URL to output file.
save_formataspose.html.saving.HTMLSaveFormatFormat 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 to learn more about saving.### Exceptions

ExceptionDescription
ArgumentExceptionRaised if the specified url is not a valid local file URL.

save

Saves the document content and resources using the ResourceHandler.

def save(self, resource_handler, save_format):
    ...
ParameterTypeDescription
resource_handleraspose.html.saving.resourcehandlers.ResourceHandlerThe resource handler ResourceHandler.
save_formataspose.html.saving.HTMLSaveFormatFormat in which document is saved.

save

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”.

def save(self, path, save_options):
    ...
ParameterTypeDescription
pathstrLocal path to output file.
save_optionsaspose.html.saving.HTMLSaveOptionsHTML 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 to learn more about saving.### Exceptions

ExceptionDescription
ArgumentExceptionRaised if the specified path is not a valid local file path.

save

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”.

def save(self, url, save_options):
    ...
ParameterTypeDescription
urlUrlLocal URL to output file.
save_optionsaspose.html.saving.HTMLSaveOptionsHTML 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 to learn more about saving.### Exceptions

ExceptionDescription
ArgumentExceptionRaised if the specified url is not a valid local file URL.

save

Saves the document content and resources using the ResourceHandler.

def save(self, resource_handler, save_options):
    ...
ParameterTypeDescription
resource_handleraspose.html.saving.resourcehandlers.ResourceHandlerThe resource handler ResourceHandler.
save_optionsaspose.html.saving.HTMLSaveOptionsHTML save options.

save

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”.

def save(self, path, save_options):
    ...
ParameterTypeDescription
pathstrLocal path to output file.
save_optionsaspose.html.saving.MarkdownSaveOptionsMarkdown 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 to learn more about saving.### Exceptions

ExceptionDescription
ArgumentExceptionRaised if the specified path is not a valid local file path.

save

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”.

def save(self, url, save_options):
    ...
ParameterTypeDescription
urlUrlLocal URL to output file.
save_optionsaspose.html.saving.MarkdownSaveOptionsMarkdown 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 to learn more about saving.### Exceptions

ExceptionDescription
ArgumentExceptionRaised if the specified url is not a valid local file URL.

save

Saves the document content and resources using the ResourceHandler.

def save(self, resource_handler, save_options):
    ...
ParameterTypeDescription
resource_handleraspose.html.saving.resourcehandlers.ResourceHandlerThe resource handler ResourceHandler.
save_optionsaspose.html.saving.MarkdownSaveOptionsMarkdown save options.

save

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”.

def save(self, path, save_options):
    ...
ParameterTypeDescription
pathstrLocal path to output file.
save_optionsaspose.html.saving.MHTMLSaveOptionsMHTML 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 to learn more about saving.### Exceptions

ExceptionDescription
ArgumentExceptionRaised if the specified path is not a valid local file path.

save

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”.

def save(self, url, save_options):
    ...
ParameterTypeDescription
urlUrlLocal URL to output file.
save_optionsaspose.html.saving.MHTMLSaveOptionsMHTML 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 to learn more about saving.### Exceptions

ExceptionDescription
ArgumentExceptionRaised if the specified url is not a valid local file URL.

save

Saves the document content and resources using the ResourceHandler.

def save(self, resource_handler, save_options):
    ...
ParameterTypeDescription
resource_handleraspose.html.saving.resourcehandlers.ResourceHandlerThe resource handler ResourceHandler.
save_optionsaspose.html.saving.MHTMLSaveOptionsMHTML save options.

See Also