Unable to save SVG Image (shape) into word document

Hi Aspose Team!

A customer reached out to us because he is having some issue exporting his SVGs into the documents.

The images are initially created with UML descriptors that allow the platform to then render them as images. While investigating we were able to find out which part of the SVG xml is causing the issue but we are unable to understand why aspose is not able to handle them.

For reference, this is the base64 format of the image in HTML (before calling Aspose library):
scratch_288.txt.zip (2.8 KB)

The image is inserted as a byte stream (from HTML image element) via the Document api:
new Document().insertImage(imageInputStream);

And then fails with the following exception:
java.lang.NullPointerException: Cannot invoke java.lang.Iterable.iterator() because parameter1 is null
at com.aspose.words.zzYDg.zzWbG(Unknown Source) ~[aspose-words-21.9-jdk17.jar:21.9.0]

Additionally I have uploaded the XML from the SVG:
scratch_287.xml.zip (3.2 KB)

It seems that when we remove text-decoration=“wavy underline” more specifically, the wavy value in the attribute it is possible to save the image in the document.
Any idea why is this otherwise a error in the framework? The SVG/xml seems to be valid.

Any help would be much appreciated.

Thanks in Advance!
Miguel Machado

@Mmachado
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25543

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-25543) have been fixed in this Aspose.Words for Java 23.7 update.