public void readFile(MultipartFile file) {
try(XSSFWorkbook workbook = new XSSFWorkbook(file.getInputStream())) {
for(Sheet sheet : workbook) {
for(Row row : sheet) {
if(row.getRowNum() != 0) {
row.getCell(0).getStringCellValue();
row.getCell(1).getNumericCellValue();
}
}
}
} catch (IOException e) {
throw new RuntimeException(e);
}
}
Refer this link below to generate PDF using Flying Saucer and Thymeleaf.
Flying Saucer for PDF Generation
Example Resume’s: