//Opening the presentation file by passing the file path and load options to the constructor of Presentation class
Presentation pres = new Presentation( "data/AsposeProtection-PropAccess.pptx", loadOptions);
//Getting Document Properties
IDocumentProperties docProps = pres.getDocumentProperties();
System.out.println("Properties Count: " + docProps.getCount());
}