Presentation Format

Contents
[ ]

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:

  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:

IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo("HelloWorld.pptx");
switch (info.LoadFormat)
{
    case LoadFormat.Pptx:
        {
            break;
        }

    case LoadFormat.Unknown:
        {
            break;
        }
}