| | |
| | | setChageWord(fileName, out, textMap, tReportTemplate.getReportType(), templateType, autoTableMap); |
| | | out.flush(); |
| | | changColorIfJAQ(textMap, out, reportName, tReportTemplate.getReportType()); |
| | | ShellTool.execLibreofficeCommand("pdf", EssConfig.getProfile() + "/" + reportName, EssConfig.getProfile() + "/"); |
| | | //PAQ采用新的doc转pdf |
| | | if(!ReportTypeEnum.PAQ.getCode().equals(reportType)){ |
| | | ShellTool.execLibreofficeCommand("pdf", EssConfig.getProfile() + "/" + reportName, EssConfig.getProfile() + "/"); |
| | | }else{ |
| | | ShellTool.execPythonCommand(1,EssConfig.getProfile() + "/" + reportName); |
| | | } |
| | | zipFilePath = getPdfPath(reportName); |
| | | |
| | | deleteFileStrList.add(EssConfig.getProfile() + "/" + reportName); |
| | |
| | | changeTextBox(document, textMap); |
| | | |
| | | //设置图表 |
| | | if (Objects.equals(reportType, ReportTypeEnum.SAQ.getCode())) { |
| | | if (Objects.equals(reportType, ReportTypeEnum.SAQ.getCode()) || Objects.equals(reportType, ReportTypeEnum.PAQ.getCode())) { |
| | | SAQChart.changeChart(document, textMap); |
| | | } |
| | | |
| | |
| | | changeTable(document, textMap); |
| | | |
| | | //设置图表控件 |
| | | changChar(textMap, document, reportType, templateType); |
| | | //changChar(textMap, document, reportType, templateType); |
| | | document.write(out); |
| | | } |
| | | private static void changeTextBox(XWPFDocument document, Map<String, Object> textMap) throws DocumentException { |