I’m using Aspose.Slides (V19.9.0) to convert a PowerPoint slide to a svg image with the following code:
var presentation = new Presentation(pptFileName);
var firstSlide = presentation.Slides[0];
using (Stream fileStream = File.Open(outFileName, FileMode.Create))
{
// Generate SVG image of slide and save in file stream
var svgOptions = new SVGOptions
{
PicturesCompression = PicturesCompression.DocumentResolution
};
firstSlide.WriteAsSvg(fileStream, svgOptions);
fileStream.Position = 0;
}
Everything works fine, except when there are images on the slide, the images are getting rendered blurry. I tried it with the SVGOptions.PicturesCompression = PicturesCompression.DocumentResolution. But it didn’t work as you can see in the attachmentpowerpoints.zip (173.0 KB)
.
What can I do to get my images rendered sharply?