Class SvgProcessorContext


  • public class SvgProcessorContext
    extends java.lang.Object
    Context class with accessors to properties/objects used in processing Svg documents
    • Field Detail

      • fontProvider

        private FontProvider fontProvider
        The font provider.
      • tempFonts

        private FontSet tempFonts
        Temporary set of fonts used in the PDF.
      • cssContext

        private final SvgCssContext cssContext
        The SVG CSS context.
    • Method Detail

      • getFontProvider

        public FontProvider getFontProvider()
        Gets the font provider.
        Returns:
        the font provider
      • getResourceResolver

        public ResourceResolver getResourceResolver()
        Gets the resource resolver.
        Returns:
        the resource resolver
      • getDeviceDescription

        public MediaDeviceDescription getDeviceDescription()
        Gets the device description.
        Returns:
        the device description
      • getTempFonts

        public FontSet getTempFonts()
        Gets the temporary set of fonts.
        Returns:
        the set of fonts
      • getCssContext

        public SvgCssContext getCssContext()
        Gets the SVG CSS context.
        Returns:
        the SVG CSS context
      • addTemporaryFont

        public void addTemporaryFont​(FontProgram fontProgram,
                                     java.lang.String encoding,
                                     java.lang.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

        public void addTemporaryFont​(FontProgram fontProgram,
                                     java.lang.String encoding,
                                     java.lang.String alias)
        Add temporary font from @font-face.
        Parameters:
        fontProgram - the font program
        encoding - the encoding
        alias - the alias
      • addTemporaryFont

        public void addTemporaryFont​(FontInfo fontInfo,
                                     java.lang.String alias)
        Add temporary font from @font-face.
        Parameters:
        fontInfo - the font info
        alias - the alias