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
ISvgConverterPropertiesa 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
FontProgramthe font program
encoding
stringthe encoding
alias
stringthe 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
FontProgramthe font program
encoding
stringthe encoding
alias
stringthe alias
unicodeRange
Rangethe 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
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