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.Clear(Color.White);

            graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
            graphics.CompositingQuality = CompositingQuality.HighQuality;
            graphics.SmoothingMode = SmoothingMode.HighQuality;
          
            slide.RenderToGraphics(
                new RenderingOptions
                {
                    NotesCommentsLayouting =
                    {
                            CommentsAreaWidth = 0
                    }
                },
                graphics,
                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.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.net issue?

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

@Andrey_Potapov
Presentation1.zip (36.6 KB)

@vpr,
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.