Class SvgResourceKeeperCallback
Namespace: Aspose.Imaging.FileFormats.Svg
Assembly: Aspose.Imaging.dll (25.2.0)
The resource keeper callback.
public class SvgResourceKeeperCallback : ISvgResourceKeeperCallback
Inheritance
object ← SvgResourceKeeperCallback
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
SvgResourceKeeperCallback()
public SvgResourceKeeperCallback()
Methods
OnFontResourceReady(FontStoringArgs)
Called when the font resource is ready for export.
public virtual 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.
public virtual string 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
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.
public virtual string OnSvgDocumentReady(byte[] htmlData, string suggestedFileName)
Parameters
htmlData
byte[]
The SVG data.
suggestedFileName
string
Name of the suggested file.
Returns
Returns the path to the saved SVG document.