Presentation Format
Contents
[
Hide
]
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:
- Create an instance of IPresentationInfo class.
- 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:
print("PPTX")
elif info.load_format == slides.LoadFormat.UNKNOWN:
print("UNKNOWN")