Class SvgImage

    • Constructor Detail

      • SvgImage

        public SvgImage​(SvgImageXObject xObject)
        Creates an SvgImage from the SvgImageXObject which represents Form XObject and contains processor result with the SVG information and resource resolver for the SVG image.
        Parameters:
        xObject - an internal SvgImageXObject.
    • Method Detail

      • generate

        @Deprecated
        public void generate​(PdfDocument document)
        Deprecated.
        was replaced by getSvgImageXObject().generate(PdfDocument)
        Draws SVG image to a canvas-like object maintained in the SvgDrawContext.
        Parameters:
        document - pdf that shall contain the SVG image.