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

Free Support Forum - aspose.com

IMporting SVG to word document


I’m using this code to import a SVG into an empty word document…

Aspose.Words.Document doc = new Aspose.Words.Document(@“C:\test1.docx”);

Aspose.Words.DocumentBuilder b = new Aspose.Words.DocumentBuilder(doc);
b.InsertImage(System.Convert.FromBase64String(svg), Aspose.Words.Drawing.RelativeHorizontalPosition.LeftMargin, 0, Aspose.Words.Drawing.RelativeVerticalPosition.TopMargin, 0,
-1, -1, Aspose.Words.Drawing.WrapType.Inline);
doc.Save(@“c:\RimTemplateTest\out.docx”, Aspose.Words.SaveFormat.Docx);

This appears to work just fine. But some layers are missing from the SVG in the output document. Arrows on the lines…

They are present in the section of the SVG and seems to be left out of your interpretation of the SVG.

Is this a known limitation or a bug ?

I’m testing it on the lastest Version 16.11

I have attached the SVG file

Thanks in advance…

Hi Allan,

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 WORDSNET-14419. 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 WORDSNET-14419) have been fixed in this Aspose.Words for .NET 17.8 update and this Aspose.Words for Java 17.8 update.