2014年5月30日

Java使用IText(VM模版)导出PDF

摘要: public String createPDF(ProjectManageBase projectManageBase) { Map map = new HashMap();// velocity模板中的变量 try { //模版vm的路径 String tmPath = ServletActionContext.getServletContext() .getRealPath(“/pdf/vm”); String pdfPath = ServletActionContext.getServletContext() .getRealPath(“/pdf”);//用于生成pdf,存放pdf的路径 String facePath = pdfPath + "/test.vm.pdf";// 生成的pdf 阅读全文

posted @ 2014-05-30 16:50 qgc 阅读(924) 评论(0) 推荐(0)

导航