//Instantiate a Presentation object that represents a PPT file
Presentation pres = new Presentation("data/presentation.ppt");
//Saving the presentation to PDF document
pres.save("data/AsposeConvert.pdf", SaveFormat.Pdf);
//Display result of conversion.
System.out.println("Conversion to PDF performed successfully with default options!");
// 2. Conversion to PDF using custom options.