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: Excel
Excel to PDF Conversion Options
When converting an Excel spreadsheet to PDF using jOfficeConvert, there are a few options that can be set through the ExcelConvertOptions class: Option to create a bookmark for each worksheet Option to set the layout of the page (fit to page, width or height) Option to set a maximum number for the output PDF Here […]
Convert an Excel worksheet to a Tiff Image in Java using jOfficeConvert
This Java sample program uses jOfficeConvert to convert an Excel spreadsheet to a multi page Tiff image. // Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Save the document as a multi-page TIFF file ed.saveDocumentAsTIFF("output.tif", new TIFFOptions(150, TIFFOptions.TIFF_FAX_GROUP4));// Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Save the […]
Print an Excel spreadsheet in Java using jOfficeConvert
jOfficeConvert allows to print an Excel spreadhsheet and send it either to the default printer or to a named printer. // Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Print to the default printer ed.printToDefaultPrinter(null); // Print to a named printer ed.print("my printer", null);// Load the document ExcelDocument ed = […]
Convert Microsoft Excel to Adobe PDF in Java
Released September 2017! Qoppa Software library jOfficeConvert is a 100% Java library which can render Excel Spreadsheets (xlsx), convert Excel Spreadsheets to PDF or to images. jOfficeConvert can also render and convert Microsoft Word Documents (*.doc, *.docx) to PDF or images. Try Excel to PDF Conversion Now!