Free Support Forum -

Exported SVG is different from actual PPT when exporting tables

Hello Team,

Can you please take a look at my issue below?

I am adding tables to the slide, setting specific column (cell) width.
Then I am generating an SVG, but in quite many cases it is different from actual PPT when I open it in PowerPoint.
Seems that Aspose.Slides are having a bit different precision comparing to PowerPoint.

I have attached sample PPT file, exported SVG and also screenshots with issues comparing SVG and PowerPoint. (103.9 KB)

In my example take a look on last column.
In my code it has a width of 24.661023622047246
In PowerPoint it rounds it to 0,87cn - which corresponding to 24.661417322834644 (which is even higher than actual value) - and still it is not enough to fit same amount of letters.
Only when I change the value to 0,88cm (which corresponds to 24.944881889763778 width units) - only then it fits same amount of letters.

Looks to be some precision issue.
Thank you for any suggestions and help

Please check your issue with the latest version of Aspose.Slides. I used a code example as below and received the correct result:

var svgStream = new MemoryStream();
using (var presentation = new Presentation(dataPath + "table_shift.pptx"))

svgStream.Seek(0, SeekOrigin.Begin);
using (var fileStream = File.OpenWrite(dataPath + "table_shift-out.svg"))

If the issue remains with the latest version of Aspose.Slides, please share a code snippet reproducing the problem.

Thank you Andrey.
Seems to be working on 21.3 on my example.

Will test remaining cases later once we update our license.
In case of any issues will let you know.

Thank you