SVG Rendering Issue

Hi,

We are inserting an SVG image using DocumentBuilder.insertImage() and are noticing some issues with the result when saving as a Word document (docx).

The font-family appears to be ignored and defaults to Time New Roman. Also the fonts don’t look smooth when adjusting the size of the image.

The series line is jagged and not smooth.
A red dashed line appears at the bottom of the chart which is not present in the original.

Can you please have a look and see if you can improve the rendering of SVG’s?

I’ve attached a document with the imported sample on the left and the same SVG on the right inserted using word which looks perfect. I’ve also attached the source SVG.

ThanksSVG render issue.zip (118.6 KB)

@pauldeg

Thanks for your inquiry. We have tested the scenario and noticed the reported issues. Please note we are unable to notice the red dashed line. We have logged following tickets against found issues. We will notify you as soon as these issues are resolved. We are sorry for the inconvenience.

WORDSNET-16112: Jagged Chart series line
WORDSNET-16113: Font issue

@pauldeg,
The issues you have found earlier (filed as WORDSNET-16112 and WORDSNET-16112) have been fixed in this Aspose.Words for .NET 18.2 update and this Aspose.Words for Java 18.2 update.
Please also check the following articles:

A post was split to a new topic: Exception is thrown while inserting SVG