Jump to content
We've recently updated our Privacy Statement, available here ×

Coloured SVG isn't coloured after rendering (BatikRenderer)


147852369

Recommended Posts

Hello guys,

There's a coloured SVG Image that I included in my JasperReport-TemplateFile. But after rendering the image isn't coloured anymore. It's black and white.

Is there a support for rendering coloured SVG images?

I use JasperReports and iReport in version 4.0.1.

<image>    <reportElement x="657" y="45" width="55" height="16"/>    <imageExpression class="net.sf.jasperreports.engine.JRRenderable">         <![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstanceFromLocation("images/myImage.svg")]]>    </imageExpression></image>[/code]

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The color issue is solved by replacing Batik.

I updated JasperReports 4.0.1 to version 4.1.1 to change the property net.sf.jasperreports.image.dpi because the rendered svg-images are very blurred.

But net.sf.jasperreports.image.dpi = 300 changed nothing. The images are still blurred. What can I do now? The original images are very, very sharp.

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...