Convert PDF to FODP in Python

Import PDF pages and save them as a flat XML-based FODP presentation with Aspose.Slides for Python via Java.

Convert PDF to FODP in Python

Aspose.Slides for Python via Java can import PDF pages as slides and save the resulting presentation as an FODP file. FODP stores the presentation as a single flat XML document, which can simplify inspection, version control, and automated processing.

Convert PDF to FODP using Python

Create an empty Presentation, remove its default slide, and call addFromPdf to import the PDF pages. Then call save with SaveFormat.Fodp.

Python code for converting PDF to FODP

presentation = Presentation()
try:
    presentation.getSlides().removeAt(0)
    presentation.getSlides().addFromPdf("document.pdf")
    presentation.save("presentation.fodp", SaveFormat.Fodp)
finally:
    presentation.dispose()

How to convert PDF to FODP in Python

Follow these steps to import a PDF document and save its pages as an FODP presentation.

  1. Install Aspose.Slides for Python via Java .

  2. Configure the package and start the Java Virtual Machine in your application.

  3. Import the PDF pages by calling addFromPdf on the presentation’s slide collection.

  4. Call save with SaveFormat.Fodp to create the FODP presentation.