2004 IR Help Posted September 1, 2006 Share Posted September 1, 2006 By: bompa - sbompani Vectorial images in pdf report (w/o raster) 2004-06-21 08:53 I need to include in my reports some vectorial images (e.g.: .dxf, .svg, ...) that must be vectorial also in the resulting file (.pdf). I suppose iReport hasn't any support for vectorial images. Is there some way to put into my .pdf report vectorial images without raster them ? By: Giulio Toffoli - gt78 RE: Vectorial images in pdf report (w/o raster) 2004-06-22 00:57 I seen on jasperreports patch web page a way to handle vectorial images into jasper files, but this patch was never implemented in the main distribution. Giulio Link to comment Share on other sites More sharing options...
chgsd Posted November 7, 2010 Share Posted November 7, 2010 I know this is really really really old, but I was looking for an answer to this same question and found a solution. Thinking that someone else may come across this same question for the same reason, this will place the question and solution together for those who follow.I found the solution here: http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=64262This allows you to use an SVG image instead of a jpg/gif in iReport.Cheers,CHgsdCode:<image hAlign="Center" vAlign="Middle"> <reportElement x="0" y="20" width="572" height="28"/> <imageExpression class="net.sf.jasperreports.engine.JRRenderable"> <![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstance(new java.io.File("/path/to/image.svg"))]]> </imageExpression></image> 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