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