import aspose.slides as slides # Applying the linence for Aspose.Slides slidesLicense = slides.License() slidesLicense.set_license("Aspose.Total.lic") # Generate a default empty presentation using Presentation class object with slides.Presentation() as pdfImportPresentationObj: # Include the PDF file from the disk to slides collection pdfImportPresentationObj.slides.addFromPdf("SourcePDF.pdf"); # Import the PDF in PPTX presentation pdfImportPresentationObj.save("ImportedPDF_out.pptx", slides.export.SaveFormat.PPTX)