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

Free Support Forum - aspose.com

How to convert SVG to PNG and set in same position in Document

Hii Team,
When i am converting Word to FixedHTML then image is rendered as Svg. I wan to rendered this svg as a image base64.

Snippet:
Aspose.Words.Saving.HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
options.ExportEmbeddedImages = true;
options.ExportEmbeddedSvg = true;
Document doc = new Document(@“C:\ChartTest1.docx”);
doc.Save(@“C:\ChartTest1.html”, options);

Attachments :
Files.zip (71.0 KB)

@AlpeshChaudhari12345 You should specify MetafileRenderingMode.Bitmap in HtmlFixedSaveOptions. For example see the following code:

Aspose.Words.Saving.HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
options.ExportEmbeddedImages = true;
options.ExportEmbeddedSvg = true;
options.MetafileRenderingOptions.RenderingMode = MetafileRenderingMode.Bitmap;
Document doc = new Document(@"C:\Temp\in.docx");
doc.Save(@"C:\Temp\out1.html", options);