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

Free Support Forum - aspose.com

SVG images not displayed correctly

Hi,
I have noticed a problem displaying a SVG image.

Failure Effect:
If you open the image e.g. in a browser, the SVG image will be displayed correctly.
In the generated document several strokes are not displayed correctly in the SVG image.
In the comparison between the SVG image and the generated document the difference shows up:

  • “image.svg” = SVG image (expected)
  • “result.docx” = generated document (result)

both contained in svg.zip (7.6 KB)

Steps to Reproduce:
Using Aspose.Words for Java 19.11 (also testet with 18.7).
Using the following sample SVG image:

  • “image.svg” contained in svg.zip (7.6 KB)

Using the following code:

DocumentBuilder documentBuilder = new DocumentBuilder();
documentBuilder.insertImage(“image.svg”);
documentBuilder.getDocument().save(“result.docx”);

Regards
Ingo Gutzeit

@gutzeit,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSJAVA-2257. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.