// 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
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.