Presentation Format
Contents
[
Hide
]
Aspose.Slides for .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:
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo("HelloWorld.pptx");
switch (info.LoadFormat)
{
case LoadFormat.Pptx:
{
break;
}
case LoadFormat.Unknown:
{
break;
}
}