code: public static BufferedImage convertFromSvg(final URI svgFile, final int width, final int height)
              throws TranscoderException {
          BufferedImageTranscoder imageTranscoder = new BufferedImageTranscoder();
  
          imageTranscoder.addTranscodingHint(TIFFTranscoder.KEY_WIDTH, (float) width);
          imageTranscoder.addTranscodingHint(TIFFTranscoder.KEY_HEIGHT, (float) height);
  
          TranscoderInput input = new TranscoderInput(svgFile.toString());
          imageTranscoder.transcode(input, null);
  
          return imageTranscoder.getBufferedImage();
      }
docs: Renders an SVG image into a {@link BufferedImage}.
  
  @param svgFile the svg file
  @param width the width
  @param height the height
  @return a buffered image
  @throws TranscoderException