package officeSamples; import com.qoppa.office.PowerPointDocument; public class PPTXtoPDF { public static void main (String [] args) { try { // Load the document PowerPointDocument pd = new PowerPointDocument("input.pptx", OfficeSample.getPPTConvertOptions()); // Save the document as a PDF file pd.saveAsPDF("output.pdf"); } catch (Throwable t) { t.printStackTrace(); } } }