Convert PDF to POT in Python

Import PDF pages and save them in the PowerPoint 97-2003 POT template format with Aspose.Slides for Python via Java.

Convert PDF to POT in Python

Aspose.Slides for Python via Java can import PDF pages as slides and save the resulting presentation in the binary POT format used by PowerPoint 97-2003 presentation templates. The conversion does not require Microsoft PowerPoint or a PDF viewer.

Convert PDF to POT using Python

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

Python code for converting PDF to POT

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

How to convert PDF to POT in Python

Follow these steps to import a PDF document and save its pages in the PowerPoint 97-2003 POT template format.

  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.Pot to create the POT file.