Utility component to generate excel, word and pdf documents.
- Generate the template according to the specification of jxls.
- Fill the variables according to the following methods:
InputReportFile inputReportFile = new InputReportFile(PATH_TEMPLATE,
MAP < String, Object > parameters);
OutputReportFile outputReportFile = new OutputReportFile(TEMPORAL_FOLDER, "testPdf", OutputReportTypeEnum.PDF);
ReportConfiguration configuration = new ReportConfiguration(inputReportFile, outputReportFile);
Report excelReport = new ExcelReport(configuration);
OutputReportFile report = excelReport.buildReport();
report.saveFile();
report.getFileBase64();
- Generate the chord template according to the example of the unit tests.
- Fill the variables according to the following methods:
InputReportFile inputReportFile = new InputReportFile(PATH_TEMPLATE,
MAP < String, Object > parameters);
OutputReportFile outputReportFile = new OutputReportFile(TEMPORAL_FOLDER, "testPdf", OutputReportTypeEnum.PDF);
ReportConfiguration configuration = new ReportConfiguration(inputReportFile, outputReportFile);
Report report = new WordReport(configuration);
OutputReportFile outReportFile = report.buildReport();
outReportFile.saveFile();
outReportFile.getFileBase64();
- HTML
- DOC or XLS only supports replace of variables into the document.
Feel free to generate pull requests that help improve the functionality of the project. Any post change is welcome.