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.
Raised if the specified url is not a valid local file URL.
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”.
If the specified url ends with “.svgz”, the document will be saved as a compressed SVGZ file.
defsave(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
Saves the document content and resources using the ResourceHandler.
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”.
defsave(self,path,save_format):...
Parameter
Type
Description
path
str
Local path to output file.
save_format
aspose.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
Saves the document content and resources using the ResourceHandler.
Thrown when the specified save_format value is not recognised by the current implementation.
save
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.
defsave(self,path,save_options):...
Parameter
Type
Description
path
str
Absolute or relative path of the target .svg file.
save_options
aspose.svg.saving.SVGSaveOptions
Options that control plain-SVG serialization.
Exceptions
Exception
Description
ArgumentException
Thrown if path is not a valid local file path.
save
Saves the document content and resources using the ResourceHandler.
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”.
The resource handler to manage document resources, such as file system or memory-based storage.
save_options
aspose.svg.saving.SVGZSaveOptions
Options that specify additional saving parameters, such as vectorization preferences.
save
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.
defsave(self,path,save_options):...
Parameter
Type
Description
path
str
Absolute or relative path of the target .svgz file.