View POTX in Python

Powerful cross-platform Python API for opening and viewing POTX using Python code

View POTX using Aspose.Slides

Aspose.Slides for Python via .NET is a powerful Python library used to open and view, manipulate or edit presentations, import presentations from images or documents, and convert presentations to files in other formats.

View POTX in Python

Using Aspose.Slides for Python via .NET , you can load and view a presentation with a few lines of code.

Python code for viewing POTX

import aspose.slides as slides

pres = slides.Presentation("presentation.potx")

controller = slides.export.ResponsiveHtmlController()
htmlOptions = slides.export.HtmlOptions()
htmlOptions.html_formatter = slides.export.HtmlFormatter.create_custom_formatter(controller)

# Saving the presentation to HTML"index.html", slides.export.SaveFormat.HTML, htmlOptions)

How to view POTX in Python

  1. Install Aspose.Slides for Python via .NET. See Installation .

  2. Add the library as a reference in your project.

  3. Instantiate a Presentation object and load the POTX file.

  4. Create an instance of the ResponsiveHtmlController for formatting.

  5. Create an instance of HtmlOptions and set the HtmlFormatter property.

  6. Save the POTX presentation as HTML.

  7. Call Process.Start with path to resulting HTML to load POTX content.