This example exports a spreadsheet to a PDF file.
try { Application application = Application.getInstance(); Spreadsheets spreadsheets = application.getSpreadsheets(); Spreadsheet spreadsheet = spreadsheets.openSpreadsheet("D:\\test.ods", true); spreadsheet.exportPDF("C:\\test.PDF"); } catch(Exception e) { e.printStackTrace(); }
Related information