HTML JPG PDF SVG PPT
Product Family
PDF

Convert POTM to PDF in Python

Python presentation library for converting POTM to PDF

Convert POTM to PDF in Python

Use Aspose.Slides for Python via .NET to convert POTM files to PDF programmatically. Load a macro-enabled PowerPoint template with Presentation, then call save with SaveFormat.PDF.

Aspose.Slides performs the conversion without requiring Microsoft PowerPoint. You can evaluate POTM-to-PDF output with the free online conversion app . The same API supports many other presentation and export formats.

Install the package from PyPI using pip:

Console/Terminal

pip install aspose-slides

Python code to convert POTM to PDF

with slides.Presentation("presentation.potm") as presentation:
    presentation.save("presentation.pdf", slides.export.SaveFormat.PDF)
 

How to Convert POTM to PDF in Python

These are the steps to convert a POTM file to PDF using Python.

  1. Load the POTM file into a Presentation instance.

  2. Call the save method with the output file path and SaveFormat.PDF.

  3. The converted PDF file is written to the specified path.

System Requirements

Before running the Python conversion example, make sure your environment meets these requirements.

  • Windows, 64-bit Linux, or macOS (see the system requirements )
  • Python 3.5 or later
  • Aspose.Slides for Python via .NET installed in your environment

Save POTM as PDF in Python

Try the free online conversion app to see the POTM-to-PDF conversion process.

Other Supported Conversions

You can also convert POTM to many other file formats. See the supported conversions below.

POTM TO BMP (Bitmap Image)
POTM TO EMF (Enhanced Metafile Format)
POTM TO FODP (OpenDocument Flat XML Presentation)
POTM TO GIF (Graphics Interchange Format)
POTM TO HTML (Hypertext Markup Language)
POTM TO JPG (JPEG Image)
POTM TO ODP (OpenDocument Presentation)
POTM TO OTP (OpenDocument Presentation Template)
POTM TO PNG (Portable Network Graphics)
POTM TO POT (PowerPoint 97-2003 Template)
POTM TO POTX (PowerPoint Open XML Template)
POTM TO PPS (PowerPoint Slide Show)
POTM TO PPSM (Macro-enabled Slide Show)
POTM TO PPSX (PowerPoint Open XML Slide Show)
POTM TO PPT (PowerPoint 97-2003 Presentation)
POTM TO PPTM (Macro-enabled Presentation)
POTM TO PPTX (PowerPoint Open XML Presentation)
POTM TO SVG (Scalable Vector Graphics)
POTM TO SWF (Shockwave Flash File)
POTM TO TIFF (Tagged Image File Format)
POTM TO XPS (XML Paper Specification)