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

Free Support Forum - aspose.com

Page number of all the PPTX slides show 0

Aspose Version: 20.1
Language: C#

On Extracting the image from the Attached PPTx file, the sample.zip (25.8 KB)
page number for all the slides showing 0.
PFA pptx for it.
Any Suggestion?

Thank you for your request. Unfortunately, I haven’t managed to reproduce the issue with Aspose.Slides 20.1 and 21.4. Could you share the code example reproducing the error, please? But first, please check the issue with the latest version of Aspose.Slides.

Thanks Andrey.
can you plz share all extracted image to compare with my local images(20.1v)?

Here is my slide thumbnails:
sample_slide_1.png (2.4 KB)
sample_slide_2.png (2.4 KB)
sample_slide_3.png (2.5 KB)

I used the code as following:

var presentation = new Presentation(dataPath + "sample.pptx");
for (int i = 0; i < presentation.Slides.Count; i++)
    var thumbnail = presentation.Slides[i].GetThumbnail(1, 1);
    var outPath = dataPath + "sample_slide_" + (i + 1) + ".png";
    thumbnail.Save(outPath, ImageFormat.Png);

Hi Andrey,

The code that you have pasted, is creating the image per slide.
This code seems to be working as expected in 20.1v.
However, Instead of converting slides to an Image, we are extracting images of all shapes.

Below Code Sample:-

public void ExportImagesForMasters(String outputDirectory, String manifestFileName)
//m_Presentation - pptx object
foreach (var curMaster in m_Presentation.Masters)
foreach (var curShape in curMaster.Shapes)
Guid curId; // random image name
using (var curImage = curShape.ToBitmap())
target.Save(outputDirectory, System.Drawing.Imaging.ImageFormat.Png);
public static Bitmap ToBitmap(this IShape shape)
return shape.GetThumbnail(ShapeThumbnailBounds.Slide, 1,1);

Any thought?

Thank you for the code example. I reproduced the error and received the same result. I’ve logged the issue in our tracking system with ID SLIDESNET-42564. Our development team will investigate this case. You will be notified when it is fixed.

Meanwhile, do you have an ETA and a suggested workaround to temporarily resolve this issue?

I requested some ETA for this issue from our development team. I will let you know as soon as possible. Unfortunately, I see no workaround.

The issue will be fixed in Aspose.Slides 21.6 or later.

I do not see this issue mentioned in release notes for 21.6.

Can you confirm if this has been fixed in 21.6? If not, can we please expect a fix in 21.7?



The issue has been marked as resolved in upcoming Aspose.Slides for .NET 21.7. The product has not yet been rolled out and we will share the feedback with you as soon as it will be shared online.

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