Package com.itextpdf.svg.processors.impl
Class SvgProcessorContext
java.lang.Object
com.itextpdf.svg.processors.impl.SvgProcessorContext
Context class with accessors to properties/objects used in processing Svg documents
-
Constructor Summary
ConstructorDescriptionSvgProcessorContext
(ISvgConverterProperties converterProperties) Instantiates a newSvgProcessorContext
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTemporaryFont
(FontProgram fontProgram, String encoding, String alias) Add temporary font from @font-face.void
addTemporaryFont
(FontProgram fontProgram, String encoding, String alias, Range unicodeRange) Add temporary font from @font-face.void
addTemporaryFont
(FontInfo fontInfo, String alias) Add temporary font from @font-face.Gets the SVG CSS context.Gets the device description.Gets the font provider.Gets the resource resolver.Gets the temporary set of fonts.
-
Constructor Details
-
SvgProcessorContext
Instantiates a newSvgProcessorContext
instance.- Parameters:
-
converterProperties
- aISvgConverterProperties
instance
-
-
Method Details
-
getFontProvider
Gets the font provider.- Returns:
- the font provider
-
getResourceResolver
Gets the resource resolver.- Returns:
- the resource resolver
-
getDeviceDescription
Gets the device description.- Returns:
- the device description
-
getTempFonts
Gets the temporary set of fonts.- Returns:
- the set of fonts
-
getCssContext
Gets the SVG CSS context.- Returns:
- the SVG CSS context
-
addTemporaryFont
public void addTemporaryFont(FontProgram fontProgram, String encoding, String alias, Range unicodeRange) Add temporary font from @font-face.- Parameters:
-
fontProgram
- the font program -
encoding
- the encoding -
alias
- the alias -
unicodeRange
- the specific range of characters to be used from the font
-
addTemporaryFont
Add temporary font from @font-face.- Parameters:
-
fontProgram
- the font program -
encoding
- the encoding -
alias
- the alias
-
addTemporaryFont
Add temporary font from @font-face.- Parameters:
-
fontInfo
- the font info -
alias
- the alias
-