SvgResourceKeeperCallback

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.imaging.fileformats.svg.ISvgResourceKeeperCallback

public class SvgResourceKeeperCallback implements ISvgResourceKeeperCallback

The resource keeper callback

Constructors

ConstructorDescription
SvgResourceKeeperCallback()

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.

SvgResourceKeeperCallback()

public SvgResourceKeeperCallback()

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

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