Table of Contents

Class SvgProcessorContext

Namespace
iText.Svg.Processors.Impl
Assembly
itext.svg.dll

Context class with accessors to properties/objects used in processing Svg documents

public class SvgProcessorContext
Inheritance
SvgProcessorContext
Inherited Members

Constructors

SvgProcessorContext(ISvgConverterProperties)

Instantiates a new SvgProcessorContext instance.

public SvgProcessorContext(ISvgConverterProperties converterProperties)

Parameters

converterProperties ISvgConverterProperties

a ISvgConverterProperties instance

Methods

AddTemporaryFont(FontProgram, string, string)

Add temporary font from @font-face.

public virtual void AddTemporaryFont(FontProgram fontProgram, string encoding, string alias)

Parameters

fontProgram FontProgram

the font program

encoding string

the encoding

alias string

the alias

AddTemporaryFont(FontProgram, string, string, Range)

Add temporary font from @font-face.

public virtual void AddTemporaryFont(FontProgram fontProgram, string encoding, string alias, Range unicodeRange)

Parameters

fontProgram FontProgram

the font program

encoding string

the encoding

alias string

the alias

unicodeRange Range

the specific range of characters to be used from the font

AddTemporaryFont(FontInfo, string)

Add temporary font from @font-face.

public virtual void AddTemporaryFont(FontInfo fontInfo, string alias)

Parameters

fontInfo FontInfo

the font info

alias string

the alias

GetCssContext()

Gets the SVG CSS context.

public virtual SvgCssContext GetCssContext()

Returns

SvgCssContext

the SVG CSS context

GetDeviceDescription()

Gets the device description.

public virtual MediaDeviceDescription GetDeviceDescription()

Returns

MediaDeviceDescription

the device description

GetFontProvider()

Gets the font provider.

public virtual FontProvider GetFontProvider()

Returns

FontProvider

the font provider

GetResourceResolver()

Gets the resource resolver.

public virtual ResourceResolver GetResourceResolver()

Returns

ResourceResolver

the resource resolver

GetTempFonts()

Gets the temporary set of fonts.

public virtual FontSet GetTempFonts()

Returns

FontSet

the set of fonts