Class SvgProcessorContext

java.lang.Object
com.itextpdf.svg.processors.impl.SvgProcessorContext

public class SvgProcessorContext extends Object
Context class with accessors to properties/objects used in processing Svg documents
  • Constructor Details

  • Method Details

    • 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, 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

      public void addTemporaryFont (FontProgram fontProgram, String encoding, 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, String alias)
      Add temporary font from @font-face.
      Parameters:
      fontInfo - the font info
      alias - the alias