ISvgResourceKeeperCallback

public interface ISvgResourceKeeperCallback

The svg callback interface

Methods

MethodDescription
onImageResourceReady(byte[] imageData, int imageType, String suggestedFileName, boolean[] useEmbeddedImage)Called when the image resource is ready for export.
onFontResourceReady(FontStoringArgs args)Called when the font resource is ready for export.
onSvgDocumentReady(byte[] htmlData, String suggestedFileName)Called when the SVG document is ready for export.

onImageResourceReady(byte[] imageData, int imageType, String suggestedFileName, boolean[] useEmbeddedImage)

public abstract String onImageResourceReady(byte[] imageData, int imageType, String suggestedFileName, boolean[] useEmbeddedImage)

Called when the image resource is ready for export.

Parameters:

ParameterTypeDescription
imageDatabyte[]The resource data.
imageTypeintType of the image.
suggestedFileNamejava.lang.StringName of the suggested file.
useEmbeddedImageboolean[]if set to true the embedded image must be used.

Returns: java.lang.String - Returns the path to the saved resource. Path should be relative to target SVG document.

onFontResourceReady(FontStoringArgs args)

public abstract void onFontResourceReady(FontStoringArgs args)

Called when the font resource is ready for export.

Parameters:

ParameterTypeDescription
argscom.aspose.svg.options.FontStoringArgsThe font storing options.

onSvgDocumentReady(byte[] htmlData, String suggestedFileName)

public abstract String onSvgDocumentReady(byte[] htmlData, String suggestedFileName)

Called when the SVG document is ready for export.

Parameters:

ParameterTypeDescription
htmlDatabyte[]The SVG data.
suggestedFileNamejava.lang.StringName of the suggested file.

Returns: java.lang.String - Returns the path to the saved SVG document.