We have an application that converts PPTX files to SVG files.
If we have a MathFormula in our PPTX file and try to convert this file to SVG, the MathFormula is completely missing. In an old version of Aspose.Slides.NET (17.6.0) it was part of the output.
Our pptx looks like this:
image.png (39,1 KB)
The output svg file looks like this (Aspose.Slides.NET 22.2.0 and also 24.9.0):
image.png (23,5 KB)
The result svg with Aspose.Slides.NET 17.6.0 looks like this:
image.png (30,2 KB)
I have written a test method to easily create the SVG file:
[TestMethod]
[DeploymentItem(Dir + "MergerCoreTestPPTXinWord.pptx")]
public void TryPptxToSvgTest()
{
var pptxBytes = File.ReadAllBytes("MergerCoreTestPPTXinWord.pptx");
Presentation presentation;
using (var pptxStream = new MemoryStream(pptxBytes))
{
presentation = new Presentation(pptxStream);
}
string svg = string.Empty;
using (var stream = new MemoryStream())
{
presentation.Slides[0].WriteAsSvg(stream);
stream.Flush();
var svgBytes = stream.ToArray();
svg = Encoding.UTF8.GetString(svgBytes);
}
File.WriteAllText("Result_SVG.svg", svg);
}