title: Is it possible to style svg with an external style sheet using batik in grails?
body: <p>I have svg being passed from a gsp to my grails controller. I'm rendering it as a pdf and saving the file. However there is no styling attached. This makes sense as the styling is done using an external stylesheet.</p>
  
  <p>My question is is it possible to add styling to the svg using a stylesheet using batik in grails?</p>
  
  <p>Here is my source code : </p>
  
  <pre><code> String svg_URI_input = params.image
      TranscoderInput input_svg_image = new TranscoderInput(svg_URI_input);
      OutputStream pdf_ostream = new FileOutputStream("report.pdf");
      TranscoderOutput output_pdf_file = new TranscoderOutput(pdf_ostream);
      Transcoder transcoder = new PDFTranscoder();
      transcoder.transcode(input_svg_image, output_pdf_file);
      pdf_ostream.flush();
      pdf_ostream.close();
      File fd = new File("report.pdf")
  </code></pre>
  
  <p>I'm new batik and can't find any tutorials examples that I can get my head around. </p>