Class SvgConverterProperties
- Namespace
- iText.Svg.Processors.Impl
- Assembly
- itext.svg.dll
Default and fallback implementation of ISvgConverterProperties for DefaultSvgProcessor.
public class SvgConverterProperties : ISvgConverterProperties
- Inheritance
-
SvgConverterProperties
- Implements
- Inherited Members
Constructors
SvgConverterProperties()
Creates a new SvgConverterProperties instance.
public SvgConverterProperties()
Remarks
Creates a new SvgConverterProperties instance. Instantiates its members, IResourceRetriever and ISvgNodeRendererFactory, to its default implementations.
Methods
GetBaseUri()
Gets the base URI.
public virtual string GetBaseUri()
Returns
- string
the base URI
GetCharset()
public virtual string GetCharset()
Returns
GetFontProvider()
Gets the font provider.
public virtual FontProvider GetFontProvider()
Returns
- FontProvider
the font provider
GetMediaDeviceDescription()
Gets the media device description.
public virtual MediaDeviceDescription GetMediaDeviceDescription()
Returns
- MediaDeviceDescription
the media device description
GetRendererFactory()
public virtual ISvgNodeRendererFactory GetRendererFactory()
Returns
GetResourceRetriever()
public virtual IResourceRetriever GetResourceRetriever()
Returns
SetBaseUri(string)
Sets the base URI.
public virtual SvgConverterProperties SetBaseUri(string baseUri)
Parameters
baseUri
stringthe base URI
Returns
- SvgConverterProperties
the ConverterProperties instance
SetCharset(string)
public virtual SvgConverterProperties SetCharset(string charset)
Parameters
charset
string
Returns
SetFontProvider(FontProvider)
public virtual SvgConverterProperties SetFontProvider(FontProvider fontProvider)
Parameters
fontProvider
FontProvider
Returns
SetMediaDeviceDescription(MediaDeviceDescription)
Sets the media device description.
public virtual SvgConverterProperties SetMediaDeviceDescription(MediaDeviceDescription mediaDeviceDescription)
Parameters
mediaDeviceDescription
MediaDeviceDescriptionthe media device description
Returns
- SvgConverterProperties
the ConverterProperties instance
SetRendererFactory(ISvgNodeRendererFactory)
public virtual SvgConverterProperties SetRendererFactory(ISvgNodeRendererFactory rendererFactory)
Parameters
rendererFactory
ISvgNodeRendererFactory
Returns
SetResourceRetriever(IResourceRetriever)
Sets the resource retriever.
public virtual SvgConverterProperties SetResourceRetriever(IResourceRetriever resourceRetriever)
Parameters
resourceRetriever
IResourceRetrieverthe resource retriever
Returns
- SvgConverterProperties
the SvgConverterProperties instance
Remarks
Sets the resource retriever. The resourceRetriever is used to retrieve data from resources by URL.