From bd2f223c4afa76ac9da810cbcdc220678c3f4b80 Mon Sep 17 00:00:00 2001 From: gityjf <2211675158@qq.com> Date: Tue, 19 Jan 2021 09:41:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3=E8=B0=83?= =?UTF-8?q?=E7=94=A8pdf=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src_sys/com/tenwa/flow/action/comm/FlowController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src_sys/com/tenwa/flow/action/comm/FlowController.java b/src_sys/com/tenwa/flow/action/comm/FlowController.java index 15b7e315b..09f17de75 100644 --- a/src_sys/com/tenwa/flow/action/comm/FlowController.java +++ b/src_sys/com/tenwa/flow/action/comm/FlowController.java @@ -5,6 +5,7 @@ import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.are.jbo.JBOTransaction; import com.amarsoft.awe.util.JavaMethod; import com.amarsoft.context.ASUser; +import com.tenwa.channelportal.action.generativecontract.WordToPDFUtil; import org.codehaus.jackson.map.ObjectMapper; import org.springframework.stereotype.Controller; import javax.servlet.ServletException; @@ -77,6 +78,15 @@ public class FlowController extends HttpServlet { flowAction.setFlowNo(request.getParameter("flowno")); flowAction.delete(tx); tx.commit(); + }else if ("pdf".equals(type)){ + String srcPath = request.getParameter("srcPath"); + String desPath = request.getParameter("desPath"); + Boolean aboolean = WordToPDFUtil.Word2Pdf(srcPath,desPath); + if(aboolean){ + sResult = "SUCCESS"; + }else{ + sResult = "ERROR"; + } } result = sResult==null?"SUCCESS":sResult; } catch ( Exception e ) {