Packages

 

com.aspose.cad.imageoptions.svgoptionsparameters

Interface ISvgResourceKeeperCallback



  • public interface ISvgResourceKeeperCallback

    The svg callback interface

    • Method Detail

      • onImageResourceReady

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

        Called for each raster image in SVG. Use it to specify how to store the raster image.

        Parameters:
        imageData - The bytes of the raster image content
        imageType - Type of the image.
        suggestedFileName - Name of the suggested file.
        useEmbeddedImage - if set to true then image will be embedded into SVG.
        Returns:
        Should return path to saved resource. Path will be used in SVG image to refer to raster content. Path should be relative to target SVG document.
      • onFontResourceReady

        void onFontResourceReady(FontStoringArgs args)

        Called for each font used in SVG. Use it to specify how to store the font.

        Parameters:
        args - The font storage parameters
      • onSvgDocumentReady

        String onSvgDocumentReady(byte[] htmlData,
                                  String suggestedFileName)

        Called when SVG document is ready.

        Parameters:
        htmlData - The SVG document conent bytes.
        suggestedFileName - Suggested name for the file.
        Returns:
        Should return path to saved svg document.