Posted 8 September 2019, 5:16 pm EST
when i convert excel to pdf . some cell values are not showing.
below i am attaching the excel file and pdf output file …
excel_to_pdf.zip
this is My Code :
Workbook finalOut = null;
String tempFile ="E:\\ExcelFile.xlsx";
String outFile ="excelPdf.pdf";
try {
finalOut = getWorkbook(new FileInputStream((tempFile)));
if (finalOut != null) {
finalOut.save(new FileOutputStream(outFile), SaveFileFormat.Pdf);
}
} catch (Exception e) {
System.err.println("Error => {} "+ e.toString());
}