SvgResourceKeeperCallback Class

Summary: The resource keeper callback.

Module: aspose.imaging.fileformats.svg

Full Name: aspose.imaging.fileformats.svg.SvgResourceKeeperCallback

Inheritance: ISvgResourceKeeperCallback

Aspose.Imaging Version: 24.5.0

Constructors

NameDescription
SvgResourceKeeperCallback()Initializes a new instance of the SvgResourceKeeperCallback class

Methods

NameDescription
on_font_resource_ready(args)Called when the font resource is ready for export.
on_image_resource_ready(image_data, image_type, suggested_file_name, use_embedded_image)Called when the image resource is ready for export.
on_svg_document_ready(html_data, suggested_file_name)Called when the SVG document is ready for export.

Constructor: SvgResourceKeeperCallback()

 SvgResourceKeeperCallback() 

Initializes a new instance of the SvgResourceKeeperCallback class

Method: on_font_resource_ready(args)

 on_font_resource_ready(args) 

Called when the font resource is ready for export.

Parameters:

ParameterTypeDescription
argsFontStoringArgsThe font storing options.

Method: on_image_resource_ready(image_data, image_type, suggested_file_name, use_embedded_image)

 on_image_resource_ready(image_data, image_type, suggested_file_name, use_embedded_image) 

Called when the image resource is ready for export.

Parameters:

ParameterTypeDescription
image_databyteThe resource data.
image_typeSvgImageTypeType of the image.
suggested_file_namestringName of the suggested file.
use_embedded_imageBooleanif set to true the embedded image must be used.

Returns

TypeDescription
stringReturns the path to the saved resource. Path should be relative to target SVG document.

Method: on_svg_document_ready(html_data, suggested_file_name)

 on_svg_document_ready(html_data, suggested_file_name) 

Called when the SVG document is ready for export.

Parameters:

ParameterTypeDescription
html_databyteThe SVG data.
suggested_file_namestringName of the suggested file.

Returns

TypeDescription
stringReturns the path to the saved SVG document.