Aspose Slides 18.1
The attached ppt file is not correctly converted to SVG. The view/image is somehow cropped.
Please see attached files as reference for wrong vs correct results.
AJNR Am J Neuroradiol 2007 Sep 28(8) 1567-72, Fig 1.ppt.zip (94.9 KB)
wrong_result.png (19.7 KB)
correct_result.jpg (141.4 KB)
@thomas.winklehner,
I have worked with your presentation using Aspose.Slides for .NET 18.1 on my end using following code and have not been able to observe the issue.
public static void TestExportSVG()
{
String dataDir=@"C:\Users\Muhammad\Downloads\AJNR Am J Neuroradiol 2007 Sep 28(8) 1567-72, Fig 1.ppt\";
using (Presentation pres = new Presentation(dataDir + "AJNR.ppt"))
{
// Access the first slide
ISlide sld = pres.Slides[0];
// Create a memory stream object
MemoryStream SvgStream = new MemoryStream();
SVGOptions opts = new SVGOptions();
opts.JpegQuality = 100;
// opts.PicturesCompression = PicturesCompression.Dpi330;
opts.MetafileRasterizationDpi = 512;
// Generate SVG image of slide and save in memory stream
sld.WriteAsSvg(SvgStream,opts);
SvgStream.Position = 0;
// Save memory stream to file
using (Stream fileStream = System.IO.File.OpenWrite(dataDir + "Aspose_out3.svg"))
{
byte[] buffer = new byte[8 * 1024];
int len;
while ((len = SvgStream.Read(buffer, 0, buffer.Length)) > 0)
{
fileStream.Write(buffer, 0, len);
}
}
SvgStream.Close();
}
}
For your kind reference the generated SVG is also attached.
SVG.zip (511.8 KB)
1 Like
Thanks for providing the code sample. We have not been able to reproduce the bug on our side yet.
Thanks
@thomas.winklehner,
We are glad to know that things are started working on your end.