I'm trying to export presentation into svg. though when I add multiple series to chart I just get a blank svg
When exporting with only one series it looks rahter good.
Please check code snippet and presentations attached
test1.pptx - 2 serties , blank svg
test2.pptx - 1 series, non blank svg
This functionality is very important , though it looks like SVG export is half-baked and has some critical bugs.
Please provide some kind of workaround or solution how to fix this.
Thanks
- Code: Select all
static void Main(string[] args)
{
string fileName = "D://test1.pptx";
var presentation = new Presentation(fileName, FileFormat.Ppsx2013);
var svgBytes = presentation.SaveToSVG();
int len = svgBytes.Count;
for (int i = 0; i < len; i++)
{
FileStream fs = new FileStream($"D://result{i}.svg", FileMode.Create);
byte[] bytes1 = svgBytes.Dequeue();
fs.Write(bytes1, 0, bytes1.Length);
}
Process.Start(fileName);
Process.Start("D://result0.svg");
}