Example: Name property

This example displays the name of the presentation.

try {
  Application application = Application.getInstance();
  Presentations presentations = application.getPresentations();
  Presentation presentation = presentations.openPresentation("D:\\FileTypeAssociation\\test.odp", true);
  System.out.println(presentation.getName());
} catch(Exception e) {
  e.printStackTrace();
}

Related information

Name property