We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Issue with scaling of svg images in word documents

Hi support,
I am using svg images in JasperReports with following properties (see attached Report):
ImageExpression=net.sf.jasperreports.renderers.BatikRenderer.getInstance(new java.net.URI($F{URL}).toURL())
ScaleImage=Retain Shape
When the report is generated using the default Jasperreports 6.0.3 exporter the images are correctly scaled.
When the report is generated using the Aspose.words.jasperreports 2.3.0 exporter, the images are stretched to the height of the image component. This leads to wrong image rendering when the images have a real size that is smaller than the corresponding component height.
See attachment containing the .jrxml file, the corresponding .jrprint files and obtained results.
To run the report please unzip the file to C:\temp\AsposeSvgIssue (report uses absolute image paths).
Any ideas? Am I missing some configuration?
Many thanks for your help.
Dan

Hi Dan,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSJSP-168. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSJSP-168) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.