Category: | Bug report |
Priority: | Normal |
Status: | New |
Project: | Severity: | Major |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
Hello,
I'm using JasperRports Server 5.6.0 in two installations, one on Windows7 (development machine) and the other on a linux server (CentOS 6.3) without X server. I creted a report with an image element with the followinng expression:
net.sf.jasperreports.renderers.BatikRenderer.getInstanceFromText($F{svg})
I use the rest_v2 interface with xml message format and I populate the datasource sending a bean (including the svg) in the report execution request (I wrote and deployed to JasperReport Server a custom datasource to extract the bean from the received parameters).
Everything is working fine when I use the installation on Windows, but when using the linux installation I always get a pdf containing an image with only few elements of the svg sent (e.g. if the svg has 3 lines, in the image only one is shown). I verified the sent svg is correct saving it as a file and displaying it in a browser and in Gimp, both of which show a "complete" image.
Any ideas about what is wrong?
Thanks in advance.
1 Comment:
Hi,
Just wanted to let you know that starting with upcoming JR 6.2.2 later this year, there will be "native" support for SVG in image expressions and HTML/XML exporters.
This means you no longer need to use the BatikRenderer to load the SVG data, but simply treat SVG files like image files and they will be exported to HTML as-is, since recent versions of popular browsers support SVG very well.
Thank you,
Teodor