// instantiate a Presentation object that represents a presentation file
using (Presentation presentation = new Presentation(dir + "template.pptx"))
{
// setting array of slides positions
int[] slides = { 1, 3 };
// save the presentation to PDF
presentation.Save(dir + "output.pdf", slides, SaveFormat.Pdf);
}
Dim ppt
Set ppt = CreateObject("Aspose.Slides.PresentationFactory")
Set doc =ppt.Instance.ReadPresentation("C:\inetpub\wwwroot\123.pptx")
ppt.Save "OutputPresenation.pdf", "pdf"
ppt.Dispose()
Set doc=Nothing
Set ppt=Nothing