Please find our source code below:
MemoryStream outputStream = new MemoryStream();
//Code to register Aspose license for Powerpoint
Aspose.Slides.License slidesLic = new Aspose.Slides.License();
slidesLic.SetLicense(“Aspose.Total.lic”);
//Convert PowerPoint Presentations to PDF
Presentation PresentationDoc = new Presentation(streamToConvert);
PresentationDoc.Save(outputStream, Aspose.Slides.Export.SaveFormat.Pdf);
return outputStream;
We are only using the Aspose package to convert presentations to PDF, as a helper method for other functionality.
The following code is being used in a .NET project (Target framework: .NET 4.6.1)
We are using this Aspose.Slides for .NET version: v17.8.0