Table of Contents

Class SvgImageXObject

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

A wrapper for Form XObject for SVG images.

public class SvgImageXObject : PdfFormXObject
Inheritance
SvgImageXObject
Inherited Members

Constructors

SvgImageXObject(Rectangle, ISvgProcessorResult, ResourceResolver)

Creates a new instance of Form XObject for the SVG image.

public SvgImageXObject(Rectangle bBox, ISvgProcessorResult result, ResourceResolver resourceResolver)

Parameters

bBox Rectangle

the form XObject’s bounding box.

result ISvgProcessorResult

processor result containing the SVG information.

resourceResolver ResourceResolver

ResourceResolver for the SVG image.

Methods

Generate(PdfDocument)

Processes xObject before first image generation to avoid drawing it twice or more.

public virtual void Generate(PdfDocument document)

Parameters

document PdfDocument

pdf that shall contain the SVG image.

Remarks

Processes xObject before first image generation to avoid drawing it twice or more. It allows to reuse the same Form XObject multiple times.

GetResourceResolver()

Returns resource resolver for the SVG image.

public virtual ResourceResolver GetResourceResolver()

Returns

ResourceResolver

ResourceResolver instance

GetResult()

Returns processor result containing the SVG information.

public virtual ISvgProcessorResult GetResult()

Returns

ISvgProcessorResult

{ISvgProcessorResult} processor result.