This example displays the format of the presentation.
System.out.println(presentation.getSaveFormat());
Related information
SaveFormat property