Can't Check If a PowerPoint Presentation Is of Type PPTM in Java

I want to check for a presentation if it is of type pptm, but SourceFormat has no Pptm type,
is there any other method to check it?

IPresentation presentation = new Presentation(inputPath);
int retval = 0;
switch (presentation.getSourceFormat()) {
    case SourceFormat.Ppt:
        retval = SaveFormat.Ppt;
        break;
    case SourceFormat.Pptx:
        retval = SaveFormat.Pptx;
        break;
    case SourceFormat.Odp:
        retval = SaveFormat.Odp;
    }
}

Thanks

@yecht,
Thank you for posting the question.

Please try using the following code example:

IPresentationInfo presentationInfo = PresentationFactory.getInstance().getPresentationInfo(inputPath);
int loadFormat = presentationInfo.getLoadFormat();

Examine Presentation|Aspose.Slides Documentation
LoadFormat | Aspose.Slides for Java API Reference

A post was split to a new topic: Reliability of Aspose.Cells FileFormat Detection Methods