gabriel.sanmartindiaz Posted July 2, 2013 Share Posted July 2, 2013 I have a report where I should use a very specific map-based chart so I thought about using SVG files. I've read you can use SVG files with jasper reports using Batik Renderer but I would like to know whether it is possible to modify SVG elements from that chart according to data. That is, my SVG is not a static image file but a chart that should be dependant on data.An alternative would be using java to generate the svg bytes then passing these to Jasper, is it possible to programmatically add a SVG image to a report? Link to comment Share on other sites More sharing options...
lucianc Posted July 5, 2013 Share Posted July 5, 2013 If you generate a SVG document in your code, you can pass it to the report as a parameter (either byte array or String), and create a BatikRenderer instance using the parameter value. See the Javadoc for details on the BatikRenderer methods.HTH,Lucian Link to comment Share on other sites More sharing options...
Timbo2013 Posted September 11, 2013 Share Posted September 11, 2013 *delete* Link to comment Share on other sites More sharing options...
Timbo2013 Posted September 11, 2013 Share Posted September 11, 2013 I created an SVG file with batik. It can be opend with the browser - looks fine. But how do I get the "needed" byte array...? Do I have to generate a file first or when is the "turn-over-point" ?^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now