Package com.itextpdf.svg.processors.impl
Class SvgConverterProperties
java.lang.Object
com.itextpdf.svg.processors.impl.SvgConverterProperties
- All Implemented Interfaces:
-
ISvgConverterProperties
Default and fallback implementation of
ISvgConverterProperties
for DefaultSvgProcessor
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the base URI.Get the name of the Charset to be used when decoding an InputStream.Gets the font provider.Gets the media device description.Retrieve the factory responsible for creatingISvgNodeRenderer
Gets the resource retriever.setBaseUri
(String baseUri) Sets the base URI.setCharset
(String charset) setFontProvider
(FontProvider fontProvider) setMediaDeviceDescription
(MediaDeviceDescription mediaDeviceDescription) Sets the media device description.setRendererFactory
(ISvgNodeRendererFactory rendererFactory) setResourceRetriever
(IResourceRetriever resourceRetriever) Sets the resource retriever.
-
Constructor Details
-
SvgConverterProperties
public SvgConverterProperties()Creates a newSvgConverterProperties
instance. Instantiates its members, IResourceRetriever and ISvgNodeRendererFactory, to its default implementations.
-
-
Method Details
-
setRendererFactory
-
setFontProvider
-
getRendererFactory
Description copied from interface:ISvgConverterProperties
Retrieve the factory responsible for creatingISvgNodeRenderer
- Specified by:
-
getRendererFactory
in interfaceISvgConverterProperties
- Returns:
-
A
ISvgNodeRendererFactory
implementation
-
getCharset
Description copied from interface:ISvgConverterProperties
Get the name of the Charset to be used when decoding an InputStream. This method is allowed to return null, in which caseUTF-8
will be used (by JSoup).Please be aware that this method is NOT used when handling a
String
variable in theSvgConverter
.- Specified by:
-
getCharset
in interfaceISvgConverterProperties
- Returns:
-
the String name of the
Charset
used for decoding
-
setCharset
-
getBaseUri
Gets the base URI.- Specified by:
-
getBaseUri
in interfaceISvgConverterProperties
- Returns:
- the base URI
-
getFontProvider
Gets the font provider.- Specified by:
-
getFontProvider
in interfaceISvgConverterProperties
- Returns:
- the font provider
-
getMediaDeviceDescription
Gets the media device description.- Specified by:
-
getMediaDeviceDescription
in interfaceISvgConverterProperties
- Returns:
- the media device description
-
setMediaDeviceDescription
public SvgConverterProperties setMediaDeviceDescription(MediaDeviceDescription mediaDeviceDescription) Sets the media device description.- Parameters:
-
mediaDeviceDescription
- the media device description - Returns:
- the ConverterProperties instance
-
setBaseUri
Sets the base URI.- Parameters:
-
baseUri
- the base URI - Returns:
- the ConverterProperties instance
-
getResourceRetriever
Description copied from interface:ISvgConverterProperties
Gets the resource retriever. The resourceRetriever is used to retrieve data from resources by URL.- Specified by:
-
getResourceRetriever
in interfaceISvgConverterProperties
- Returns:
- the resource retriever
-
setResourceRetriever
Sets the resource retriever. The resourceRetriever is used to retrieve data from resources by URL.- Parameters:
-
resourceRetriever
- the resource retriever - Returns:
-
the
SvgConverterProperties
instance
-