This Java sample uses Qoppa’s PDF conversion library jOfficeConvert to convert each worksheet of a Microsoft Excel workbook to a PDF document, using the worksheet name as the PDF file name. // Load the document ExcelDocument ed = new ExcelDocument("C:\\test\\input.xlsx", new ExcelConvertOptions()); List<String> workSheetNames = ed.getWorkSheetNames(); for (String name : workSheetNames) { List<String> namesList […]
Articles Tagged: worksheet to PDF
Converting an Excel Worksheet to PDF
This Java sample uses Qoppa’s PDF conversion library jOfficeConvert to convert the first worksheet from a Microsoft Excel workbook to PDF. // Load the document ExcelDocument ed = new ExcelDocument("C:\\test\\input.xlsx", new ExcelConvertOptions()); List<String> worksheetNames = ed.getWorkSheetNames(); // Get the name of the first worksheet String sheet1Name = worksheetNames.get(0); // Tell the ExcelDocument […]