We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PowerPoint Slide Conversion to JPEG. Callouts Missing

Hi all. Could you plz help with converting powerpoint slide to jpeg issue?

PieChart in ppt presentation has callouts.

ppt_piechart_with_callouts.png (24.4 KB)

the result of jpeg conversion of that slide contains data labels only with borders without callouts

slide-1.jpg (33.9 KB)

the code of slide conversion

public static byte[] SaveShapeToJpg(Slide slide, int Width, int Height)
using (var newBitmap = new Bitmap(Width, Height))
using (var graphics = Graphics.FromImage(newBitmap))
using (var imageStream = new MemoryStream())

            newBitmap.SetResolution(300, 300);

            graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
            graphics.CompositingQuality = CompositingQuality.HighQuality;
            graphics.SmoothingMode = SmoothingMode.HighQuality;
                new RenderingOptions
                    NotesCommentsLayouting =
                            CommentsAreaWidth = 0
                new Size(Width, Height)
            newBitmap.Save(imageStream, _jpegCodecInfo, _epParameters);
            // construct the image item to add to the return package
            return imageStream.ToArray();

Using Aspose.Slides for .NET Nuget package v.21.7.0 (latest stable version 21.8.0 provides the same result)

Are there some other settings which need to be set before conversion or that the Aspose.Slides for .NET issue?

Welcome to our community! Thank you for posting the query. Please share the presentation file containing that slide.

Presentation1.zip (36.6 KB)

Thank you for the presentation example. I reproduced the problem with displaying callouts and logged the issue with ID SLIDESNET-42779 in our tracking system. Our development team will investigate this case. You will be notified when the problem is fixed.

The issues you have found earlier (filed as SLIDESNET-42779) have been fixed in this update.