package officeSamples; import com.qoppa.office.ExcelConvertOptions; import com.qoppa.office.ExcelDocument; public class ExcelToPDF { public static void main (String [] args) { try { // Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Save the document as a PDF file ed.saveAsPDF("output.pdf"); } catch (Throwable t) { t.printStackTrace(); } } }