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

Free Support Forum - aspose.com

Partial conversion of presentation to PDF


Is there any feasible way to convert to PDF a specified number of slides instead of the whole presentation? Something like this (doesn’t compile):

using (var outStream = new MemoryStream())
using (var ms = new MemoryStream(documentBytes))
var doc = new Aspose.Slides.Presentation(ms);
var options = new Aspose.Slides.Export.PdfOptions();
// Set to first page to save 0-base index
options.PageIndex = 2;
// Set to number of pages to render.
options.PageCount = 2;
doc.Save(ms, Aspose.Slides.Export.SaveFormat.Pdf, options);
return outStream.ToArray();


Hi Vadym,

Thanks for inquiring Aspose.Slides.

I have observed your requirements and like to share that there is no direct option available to export the presentation to PDF with specified number of slides. The right way is to use the presentation cloning feature in this regard. By using presentation cloning feature, you can select and clone the slides of your choice and also in order you like. Then finally, export the cloned presentation to PDF. This way you will be able to achieve the desired results. For more about presentation cloning, please visit this documentation link.

Please share, if I may help you further in this regard.

Many Thanks,

Thanks, Mudassir! That was helpful.

Hi Vadyam,

I like to share that we have also introduced the support for generating the PDF for specific slides in presentation. Please try using Aspose.Slides for .NET 14.9.0 on your end by following the sample code shared over this documentation link.

I hope this will be helpful.

Many Thanks,