Interface ISvgResourceKeeperCallback

Interface ISvgResourceKeeperCallback

Namespace: Aspose.Imaging.FileFormats.Svg
Assembly: Aspose.Imaging.dll (25.7.0)

The svg callback interface

public interface ISvgResourceKeeperCallback
   {
      void OnResourceGet(Uri resourceUri, Stream dataStream);
   }

Methods

OnFontResourceReady(FontStoringArgs)

Called when the font resource is ready for export.

void OnFontResourceReady(FontStoringArgs args)
   {
   }

Parameters

args FontStoringArgs

The font storing options.

OnImageResourceReady(byte[], SvgImageType, string, ref bool)

Called when the image resource is ready for export.

void OnImageResourceReady(
        byte[] imageData,
        SvgImageType imageType,
        string suggestedFileName,
        ref bool useEmbeddedImage)

Parameters

imageData byte []

The resource data.

imageType SvgImageType

Type of the image.

suggestedFileName string

Name of the suggested file.

useEmbeddedImage bool

if set to ’true’ the embedded image must be used.

Returns

string

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

OnSvgDocumentReady(byte[], string)

Called when the SVG document is ready for export.

string OnSvgDocumentReady(byte[] htmlData, string suggestedFileName)
{
}

Parameters

htmlData byte []

The SVG data.

suggestedFileName string

Name of the suggested file.

Returns

string

Returns the path to the saved SVG document.

 English