Table of Contents

Class SvgImage

Namespace
iText.Svg.Element
Assembly
itext.svg.dll

A layout element that represents SVG image for inclusion in the document model.

public class SvgImage : Image, IAbstractElement, ILeafElement, IElement, IPropertyContainer, IAccessibleElement
Inheritance
SvgImage
Implements
Inherited Members

Constructors

SvgImage(SvgImageXObject)

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.

public SvgImage(SvgImageXObject xObject)

Parameters

xObject SvgImageXObject

an internal SvgImageXObject.

Methods

Generate(PdfDocument)

Draws SVG image to a canvas-like object maintained in the SvgDrawContext.

public virtual void Generate(PdfDocument document)

Parameters

document PdfDocument

pdf that shall contain the SVG image.

MakeNewRenderer()

protected override IRenderer MakeNewRenderer()

Returns

IRenderer