Class SvgImage

All Implemented Interfaces:
IAbstractElement, IElement, ILeafElement, IPropertyContainer, IAccessibleElement

public class SvgImage extends Image
A layout element that represents SVG image for inclusion in the document model.
  • Constructor Details

    • 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 Details

    • generate

      public void generate (PdfDocument document)
      Draws SVG image to a canvas-like object maintained in the SvgDrawContext.
      Parameters:
      document - pdf that shall contain the SVG image.
    • makeNewRenderer

      protected IRenderer makeNewRenderer()
      Creates new renderer instance.
      Overrides:
      makeNewRenderer in class Image
      Returns:
      new IRenderer