SVGDocument.Save

Save(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.

public void Save(Url url)
ParameterTypeDescription
urlUrlLocal URL to output file.

Exceptions

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

See Also


Save(string)

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

public void Save(string path)
ParameterTypeDescription
pathStringLocal path to output file.

Exceptions

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

See Also


Save(ResourceHandler)

Saves the document content and resources using the ResourceHandler.

public void Save(ResourceHandler resourceHandler)
ParameterTypeDescription
resourceHandlerResourceHandlerThe resource handler ResourceHandler.

See Also


Save(string, 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”.

public void Save(string path, SVGSaveFormat saveFormat)
ParameterTypeDescription
pathStringLocal path to output file.
saveFormatSVGSaveFormatFormat in which document is saved.

Exceptions

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

See Also


Save(string, SVGSaveFormat, SVGSaveOptions)

Saves the document content and associated resources to the specified file path.

public void Save(string path, SVGSaveFormat saveFormat, SVGSaveOptions saveOptions)
ParameterTypeDescription
pathStringThe file path where the document will be saved.
saveFormatSVGSaveFormatThe format in which the document should be saved.
saveOptionsSVGSaveOptionsOptions specifying additional parameters for saving, such as vectorization preferences.

See Also


Save(ResourceHandler, SVGSaveFormat)

Saves the document content and resources using the ResourceHandler.

public void Save(ResourceHandler resourceHandler, SVGSaveFormat saveFormat)
ParameterTypeDescription
resourceHandlerResourceHandlerThe resource handler ResourceHandler.
saveFormatSVGSaveFormatFormat in which document is saved.

See Also


Save(ResourceHandler, SVGSaveFormat, SVGSaveOptions)

Saves the document content and associated resources using the specified ResourceHandler.

public void Save(ResourceHandler resourceHandler, SVGSaveFormat saveFormat, 
    SVGSaveOptions saveOptions)
ParameterTypeDescription
resourceHandlerResourceHandlerThe resource handler to manage document resources, such as file system or memory-based storage.
saveFormatSVGSaveFormatThe format in which the document should be saved.
saveOptionsSVGSaveOptionsOptions that specify additional saving parameters, such as vectorization preferences.

See Also


Save(string, SVGSaveOptions)

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 path ends with “.svgz”, the document will be saved as a compressed SVGZ file.

public void Save(string path, SVGSaveOptions saveOptions)
ParameterTypeDescription
pathStringLocal path to output file.
saveOptionsSVGSaveOptionsSVG save options.

Exceptions

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

See Also


Save(ResourceHandler, SVGSaveOptions)

Saves the document content and resources using the ResourceHandler.

public void Save(ResourceHandler resourceHandler, SVGSaveOptions saveOptions)
ParameterTypeDescription
resourceHandlerResourceHandlerThe resource handler ResourceHandler.
saveOptionsSVGSaveOptionsSVG save options.

See Also


Save(Url, 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”.

public void Save(Url url, SVGSaveFormat saveFormat)
ParameterTypeDescription
urlUrlLocal URL to output file.
saveFormatSVGSaveFormatFormat in which document is saved.

Exceptions

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

See Also


Save(Url, SVGSaveOptions)

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.

public void Save(Url url, SVGSaveOptions saveOptions)
ParameterTypeDescription
urlUrlLocal URL to output file.
saveOptionsSVGSaveOptionsSVG save options.

Exceptions

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

See Also


Save(Url, SVGSaveFormat, SVGSaveOptions)

Saves the document content and associated resources to the specified Url.

public void Save(Url url, SVGSaveFormat saveFormat, SVGSaveOptions saveOptions)
ParameterTypeDescription
urlUrlThe target Url where the document will be saved.
saveFormatSVGSaveFormatThe format in which the document should be saved.
saveOptionsSVGSaveOptionsOptions specifying additional parameters for saving, such as vectorization preferences.

See Also