SvgResourceKeeperCallback Class
Contents
[
Hide
]Summary: The resource keeper callback.
Module: aspose.imaging.fileformats.svg
Full Name: aspose.imaging.fileformats.svg.SvgResourceKeeperCallback
Inheritance: ISvgResourceKeeperCallback
Constructors
Name | Description |
---|---|
SvgResourceKeeperCallback() | Initializes a new instance of the SvgResourceKeeperCallback class |
Methods
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
args | FontStoringArgs | The 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:
Parameter | Type | Description |
---|---|---|
image_data | byte | The resource data. |
image_type | SvgImageType | Type of the image. |
suggested_file_name | string | Name of the suggested file. |
use_embedded_image | Boolean | if set to |
Returns
Type | Description |
---|---|
string | Returns 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:
Parameter | Type | Description |
---|---|---|
html_data | byte | The SVG data. |
suggested_file_name | string | Name of the suggested file. |
Returns
Type | Description |
---|---|
string | Returns the path to the saved SVG document. |