View PPSM in Python

Use a cross-platform Python API to open PPSM files and export them for viewing in a browser

View PPSM in Python

With Aspose.Slides for Python via .NET , you can load a macro-enabled PPSM slide show and export it to responsive HTML for viewing in a web browser.

Python code for viewing PPSM

with slides.Presentation("presentation.ppsm") as presentation:
    responsive_html_controller = slides.export.ResponsiveHtmlController()
    html_formatter = slides.export.HtmlFormatter.create_custom_formatter(responsive_html_controller)

    html_options = slides.export.HtmlOptions()
    html_options.html_formatter = html_formatter

    presentation.save("presentation.html", slides.export.SaveFormat.HTML, html_options)

View PPSM using Aspose.Slides

Aspose.Slides for Python via .NET is a presentation-processing library for opening, editing, and converting PowerPoint and OpenDocument presentation files.

How to view PPSM in Python

  1. Install Aspose.Slides for Python via .NET. See the installation guide.
  2. Ensure that the source PPSM file is accessible to your application.
  3. Load the PPSM file into a Presentation instance.
  4. Create a ResponsiveHtmlController instance for responsive HTML output.
  5. Create an HtmlOptions instance and set its html_formatter property with HtmlFormatter.create_custom_formatter().
  6. Call Presentation.save() with SaveFormat.HTML to export the presentation.
  7. Open the generated HTML file in a web browser to view the presentation.

Built with Aspose.Slides

View PPSM Files Online

The free Aspose.Slides Viewer app is built with Aspose.Slides for Python via .NET, the same API as the code above. Open it and see what the API can do with your own PPSM files.

  • Runs in your browser, nothing to install.
  • See how Aspose.Slides renders your files before you write code.
  • Upload your PPSM file and view its slides instantly.
  • Works on desktop and mobile, no PowerPoint needed.