Presentation Format

[ ]

Aspose.Slides for Python via .NET provides PresentationFactory class that is used to get the presentation format before even loading.

In order to get presentation format. Please follow the steps below:

  1. Create an instance of IPresentationInfo class.
  2. Get information about the presentation format.

In the example given below, we have got the presentation format:

import aspose.slides as slides

info = slides.PresentationFactory.instance.get_presentation_info(path + "HelloWorld.pptx")
if info.load_format == slides.LoadFormat.PPTX:
elif info.load_format == slides.LoadFormat.UNKNOWN: