SVG export and image scaling

Using the latest version of Aspose.Words for .NET, we’re converting Word documents to SVG files (one Word page per SVG file). Most images are fine, but some are distorted – they are smaller than they should be, and the height / width ratio has changes. Please see the attached source Word doc and output SVG file.

Our saving code is:

Aspose.Words.Document wordDoc = new Aspose.Words.Document(memory stream);
wordDoc.AcceptAllRevisions();

for (int pageindex = 0; pageindex < wordDoc.PageCount; pageindex++)
{
Aspose.Words.Saving.SvgSaveOptions options = new Aspose.Words.Saving.SvgSaveOptions();
options.PageIndex = pageindex;
options.PageCount = 1;
options.ExportEmbeddedImages = true;
wordDoc.Save(“output” + pageindex + “.svg”, options);
}

svgissue.zip (648.0 KB)

Thanks,

-Tim

@timwestover,

Thanks for your inquiry. We tested the scenario and 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 WORDSNET-18061. 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.

The issues you have found earlier (filed as WORDSNET-18061) have been fixed in this Aspose.Words for .NET 19.6 update and this Aspose.Words for Java 19.6 update.