public class SvgConverterProperties extends Object implements ISvgConverterProperties
ISvgConverterProperties for
DefaultSvgProcessor.| Constructor and Description |
|---|
SvgConverterProperties()
Creates a new
SvgConverterProperties instance. |
| Modifier and Type | Method and Description |
|---|---|
com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties |
getAccessibilityProperties()
Gets the accessibility properties.
|
String |
getBaseUri()
Gets the base URI.
|
String |
getCharset()
Get the name of the Charset to be used when decoding an InputStream.
|
CssStyleSheet |
getCssStyleSheet()
Gets the CSS style sheet.
|
com.itextpdf.kernel.geom.Rectangle |
getCustomViewport()
Gets the custom viewport of SVG.
|
FontProvider |
getFontProvider()
Gets the font provider.
|
MediaDeviceDescription |
getMediaDeviceDescription()
Gets the media device description.
|
ISvgNodeRendererFactory |
getRendererFactory()
Retrieve the factory responsible for creating
ISvgNodeRenderer |
IResourceRetriever |
getResourceRetriever()
Gets the resource retriever.
|
SvgConverterProperties |
setBaseUri(String baseUri)
Sets the base URI.
|
SvgConverterProperties |
setCharset(String charset)
Sets the character set.
|
SvgConverterProperties |
setCssStyleSheet(CssStyleSheet cssStyleSheet)
Sets the CSS style sheet.
|
void |
setCustomViewport(com.itextpdf.kernel.geom.Rectangle customViewport)
Sets the custom viewport of SVG.
|
SvgConverterProperties |
setFontProvider(FontProvider fontProvider)
Sets font provider.
|
SvgConverterProperties |
setMediaDeviceDescription(MediaDeviceDescription mediaDeviceDescription)
Sets the media device description.
|
SvgConverterProperties |
setRendererFactory(ISvgNodeRendererFactory rendererFactory)
Sets renderer factory.
|
SvgConverterProperties |
setResourceRetriever(IResourceRetriever resourceRetriever)
Sets the resource retriever.
|
public SvgConverterProperties()
SvgConverterProperties instance.
Instantiates its members, IResourceRetriever and ISvgNodeRendererFactory, to its default implementations.public com.itextpdf.kernel.geom.Rectangle getCustomViewport()
The custom viewport is used to resolve percent values of the top level svg.
public com.itextpdf.kernel.pdf.tagutils.AccessibilityProperties getAccessibilityProperties()
public void setCustomViewport(com.itextpdf.kernel.geom.Rectangle customViewport)
The custom viewport is used to resolve percent values of the top level svg.
customViewport - the custom viewportpublic SvgConverterProperties setRendererFactory(ISvgNodeRendererFactory rendererFactory)
rendererFactory - ISvgNodeRendererFactory to setSvgConverterProperties instancepublic SvgConverterProperties setFontProvider(FontProvider fontProvider)
fontProvider - FontProvider to setSvgConverterProperties instancepublic ISvgNodeRendererFactory getRendererFactory()
ISvgConverterPropertiesISvgNodeRenderergetRendererFactory in interface ISvgConverterPropertiesISvgNodeRendererFactory implementationpublic String getCharset()
ISvgConverterPropertiesUTF-8 will
be used (by JSoup).
Please be aware that this method is NOT used when handling a
String variable in the SvgConverter.
getCharset in interface ISvgConverterPropertiesCharset used for decodingpublic SvgConverterProperties setCharset(String charset)
charset - the character set to setSvgConverterProperties instancepublic String getBaseUri()
getBaseUri in interface ISvgConverterPropertiespublic FontProvider getFontProvider()
getFontProvider in interface ISvgConverterPropertiespublic MediaDeviceDescription getMediaDeviceDescription()
getMediaDeviceDescription in interface ISvgConverterPropertiespublic SvgConverterProperties setMediaDeviceDescription(MediaDeviceDescription mediaDeviceDescription)
mediaDeviceDescription - the media device descriptionpublic SvgConverterProperties setBaseUri(String baseUri)
baseUri - the base URIpublic IResourceRetriever getResourceRetriever()
ISvgConverterPropertiesgetResourceRetriever in interface ISvgConverterPropertiespublic SvgConverterProperties setResourceRetriever(IResourceRetriever resourceRetriever)
resourceRetriever - the resource retrieverSvgConverterProperties instancepublic CssStyleSheet getCssStyleSheet()
ISvgConverterPropertiesgetCssStyleSheet in interface ISvgConverterPropertiespublic SvgConverterProperties setCssStyleSheet(CssStyleSheet cssStyleSheet)
cssStyleSheet - the CSS style sheetSvgConverterProperties instanceCopyright © 1998–2025 Apryse Group NV. All rights reserved.