ISvgResourceKeeperCallback
public interface ISvgResourceKeeperCallback
The svg callback interface
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
imageData | byte[] | The resource data. |
imageType | int | Type of the image. |
suggestedFileName | java.lang.String | Name of the suggested file. |
useEmbeddedImage | boolean[] | 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:
Parameter | Type | Description |
---|---|---|
args | com.aspose.svg.options.FontStoringArgs | The 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:
Parameter | Type | Description |
---|---|---|
htmlData | byte[] | The SVG data. |
suggestedFileName | java.lang.String | Name of the suggested file. |
Returns: java.lang.String - Returns the path to the saved SVG document.