I am passing svg from gsp to the grails controller. I present it as a PDF and save the file. However, there is no styling. This makes sense because the style is performed using an external style sheet.
My question is: is it possible to add style to svg using a stylesheet using batik in grail?
Here is my source 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")
I am a new batik and cannot find examples of textbooks on which I can plunge.
source share