Class SvgProcessorContext
java.lang.Object
com.itextpdf.svg.processors.impl.SvgProcessorContext
Context class with accessors to properties/objects used in processing Svg documents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SvgCssContextThe SVG CSS context.private CssStyleSheetprivate MediaDeviceDescriptionThe device description.private FontProviderThe font provider.private final ResourceResolverprivate FontSetTemporary set of fonts used in the PDF. -
Constructor Summary
ConstructorsConstructorDescriptionSvgProcessorContext(ISvgConverterProperties converterProperties) Instantiates a newSvgProcessorContextinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTemporaryFont(FontProgram fontProgram, String encoding, String alias) Add temporary font from @font-face.voidaddTemporaryFont(FontProgram fontProgram, String encoding, String alias, Range unicodeRange) Add temporary font from @font-face.voidaddTemporaryFont(FontInfo fontInfo, String alias) Add temporary font from @font-face.Gets the SVG CSS context.Gets the CSS style sheet.Gets the device description.Gets the font provider.Gets the resource resolver.Gets the temporary set of fonts.
-
Field Details
-
fontProvider
The font provider. -
tempFonts
Temporary set of fonts used in the PDF. -
resourceResolver
-
deviceDescription
The device description. -
cssContext
The SVG CSS context. -
cssStyleSheet
-
-
Constructor Details
-
SvgProcessorContext
Instantiates a newSvgProcessorContextinstance.- Parameters:
converterProperties- aISvgConverterPropertiesinstance
-
-
Method Details
-
getFontProvider
-
getResourceResolver
Gets the resource resolver.- Returns:
- the resource resolver
-
getDeviceDescription
Gets the device description.- Returns:
- the device description
-
getTempFonts
-
getCssContext
-
addTemporaryFont
public void addTemporaryFont(FontProgram fontProgram, String encoding, String alias, Range unicodeRange) Add temporary font from @font-face.- Parameters:
fontProgram- the font programencoding- the encodingalias- the aliasunicodeRange- the specific range of characters to be used from the font
-
addTemporaryFont
Add temporary font from @font-face.- Parameters:
fontProgram- the font programencoding- the encodingalias- the alias
-
addTemporaryFont
-
getCssStyleSheet
-