Import Presentation

Contents
[ ]

Aspose.Slides for Python via .NET allows you to import presentations from PDFs. Essentially, you get to convert a PDF to a PowerPoint presentation.

pdf-to-powerpoint

Go through these steps:

  1. Instantiate an object of the presentation class.
  2. Call the add_from_pdf method and pass the PDF file.
  3. Use the save method to save the file in the PowerPoint format.

This Python code demonstrates the PDF to PowerPoint process:

import aspose.slides as slides

with slides.Presentation() as pres:
    pres.slides.remove_at(0)
    pres.slides.add_from_pdf("welcome-to-powerpoint.pdf")
    pres.save("OutputPresentation.pptx", slides.export.SaveFormat.PPTX)