Example: print method

This example prints the page 1 to 7 of the presentation for one copy.

try {
  Application application = Application.getInstance();
  Presentations presentations = application.getPresentations();
  Presentation presentation = presentations.openPresentation("D:\\FileTypeAssociation\\test.odp", true);
  presentation.print(1, "1-7",true);
} catch(Exception e) {
  e.printStackTrace();
}

Related information

print method