Class SvgUtil

java.lang.Object
org.mapfish.print.SvgUtil

public final class SvgUtil extends Object
SVG Utilities.
  • Method Details

    • convertFromSvg

      public static BufferedImage convertFromSvg(URI svgFile, int width, int height) throws org.apache.batik.transcoder.TranscoderException
      Renders an SVG image into a BufferedImage.
      Parameters:
      svgFile - the svg file
      width - the width
      height - the height
      Returns:
      a buffered image
      Throws:
      org.apache.batik.transcoder.TranscoderException