Packages

 

com.aspose.imaging.fileformats.svg

Class SvgResourceKeeperCallback

    • Constructor Detail

      • SvgResourceKeeperCallback

        public SvgResourceKeeperCallback()
    • Method Detail

      • onImageResourceReady

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

        Called when image resource ready.

        Specified by:
        onImageResourceReady in interface ISvgResourceKeeperCallback
        Parameters:
        imageData - The resource data.
        imageType - Type of the image.
        suggestedFileName - Name of the suggested file.
        useEmbeddedImage - if set to true the embedded image must be used.
        Returns:
        Returns path to saved resource. Path should be relative to target SVG document.
      • onSvgDocumentReady

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

        Called when SVG document ready.

        Specified by:
        onSvgDocumentReady in interface ISvgResourceKeeperCallback
        Parameters:
        htmlData - The SVG data.
        suggestedFileName - Name of the suggested file.
        Returns:
        Returns path to saved svg document.