itext将静态html转pdf 中文显示及换行问题

上传者: woweipingzui | 上传时间: 2019-12-21 21:56:26 | 文件大小: 20KB | 文件类型: zip
注意:此代码是利用itext将静态html转为pdf,非url转pdf 项目为maven项目,注意pom.xml文件中的jar包 解决了中文不显示及不换行的问题 https://blog.csdn.net/woweipingzui/article/details/82017089

文件下载

资源详情

[{"title":"( 24 个子文件 20KB ) itext将静态html转pdf 中文显示及换行问题","children":[{"title":"lw1002","children":[{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":[{"title":"com","children":null,"spread":false}],"spread":true},{"title":"webapp","children":[{"title":"index.jsp <span style='color:#111;'> 57B </span>","children":null,"spread":false},{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 356B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"org","children":[{"title":"xhtmlrenderer","children":[{"title":"layout","children":[{"title":"Breaker.java <span style='color:#111;'> 5.42KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"PdfDemoTest.java <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 57B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 570B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 639B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.validation.prefs <span style='color:#111;'> 50B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 892B </span>","children":null,"spread":false},{"title":"target","children":[{"title":"classes","children":[{"title":"com","children":null,"spread":false},{"title":"org","children":[{"title":"xhtmlrenderer","children":[{"title":"layout","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"test-classes","children":[{"title":"org","children":[{"title":"xhtmlrenderer","children":[{"title":"layout","children":[{"title":"Breaker.class <span style='color:#111;'> 4.92KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"PdfDemoTest.class <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"m2e-wtp","children":[{"title":"web-resources","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 115B </span>","children":null,"spread":false},{"title":"maven","children":[{"title":"com.lw","children":[{"title":"lw1002","children":[{"title":"pom.properties <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 892B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"WebContent","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 39B </span>","children":null,"spread":false}],"spread":true},{"title":"WEB-INF","children":[{"title":"lib","children":null,"spread":false},{"title":"web.xml <span style='color:#111;'> 649B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"使用前请阅读.txt <span style='color:#111;'> 101B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • Hoonick :
    下载下来先看看,看博客还是不如直接看源码
    2019-08-01
  • 趁年轻づ :
    虽然积分少,但其实没解决问题
    2019-04-08

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明