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