|
@@ -15,6 +15,7 @@ import com.goafanti.common.service.PovertyService;
|
|
|
import com.goafanti.common.utils.*;
|
|
import com.goafanti.common.utils.*;
|
|
|
import com.goafanti.common.utils.excel.FileUtils;
|
|
import com.goafanti.common.utils.excel.FileUtils;
|
|
|
import com.goafanti.common.utils.excel.NewExcelUtil;
|
|
import com.goafanti.common.utils.excel.NewExcelUtil;
|
|
|
|
|
+import com.goafanti.common.utils.pdf.PDFUtils;
|
|
|
import com.goafanti.core.mybatis.JDBCIdGenerator;
|
|
import com.goafanti.core.mybatis.JDBCIdGenerator;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
import com.goafanti.core.websocket.SystemWebSocketHandler;
|
|
import com.goafanti.core.websocket.SystemWebSocketHandler;
|
|
@@ -1034,12 +1035,13 @@ public class PublicController extends CertifyApiController {
|
|
|
public Result mergeDocumentsToPdf(HttpServletResponse response) throws DocumentException, IOException {
|
|
public Result mergeDocumentsToPdf(HttpServletResponse response) throws DocumentException, IOException {
|
|
|
// 转换Word为PDF文件
|
|
// 转换Word为PDF文件
|
|
|
// PDFUtils.convertWordToPDF("E:/4.docx", "E:/4-PDF.pdf");
|
|
// PDFUtils.convertWordToPDF("E:/4.docx", "E:/4-PDF.pdf");
|
|
|
|
|
+ PDFUtils.newConvertWordToPDF("E:/tmp/4.docx", "E:/tmp/4-PDF.pdf");
|
|
|
// PDFUtils.convertXlsxToPDF("E:/tmp/0811.xlsx", "E:/tmp/0811-PDF.pdf");
|
|
// PDFUtils.convertXlsxToPDF("E:/tmp/0811.xlsx", "E:/tmp/0811-PDF.pdf");
|
|
|
- List<String> list = Arrays.asList(
|
|
|
|
|
- "E:/tmp/4-PDF.pdf",
|
|
|
|
|
- "E:/tmp/0811-PDF.pdf"
|
|
|
|
|
- );
|
|
|
|
|
- DocumentToPDFMerger.mergePdfFiles(list, "E:/tmp/"+System.currentTimeMillis()+".pdf");
|
|
|
|
|
|
|
+// List<String> list = Arrays.asList(
|
|
|
|
|
+// "E:/tmp/4-PDF.pdf",
|
|
|
|
|
+// "E:/tmp/0811-PDF.pdf"
|
|
|
|
|
+// );
|
|
|
|
|
+// DocumentToPDFMerger.mergePdfFiles(list, "E:/tmp/"+System.currentTimeMillis()+".pdf");
|
|
|
return new Result<>();
|
|
return new Result<>();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|