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 ) {