html转为图片,java后端

上传者: 23307123 | 上传时间: 2019-12-21 20:34:39 | 文件大小: 64KB | 文件类型: rar
html转为图片的maven项目源码,使用方式特别简单,主方法中调用Html2Image中的工具方法就行,在此类中的主方法有演示,解决中文乱码问题

文件下载

资源详情

[{"title":"( 60 个子文件 64KB ) html转为图片,java后端","children":[{"title":"html2image-master","children":[{"title":".gitignore <span style='color:#111;'> 38B </span>","children":null,"spread":false},{"title":"html2image.iml <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"java","children":[{"title":"gui","children":[{"title":"ava","children":[{"title":"html","children":[{"title":"renderer","children":[{"title":"ImageRenderer.java <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"FormatNameUtil.java <span style='color:#111;'> 924B </span>","children":null,"spread":false},{"title":"LayoutHolder.java <span style='color:#111;'> 155B </span>","children":null,"spread":false},{"title":"ImageRendererImpl.java <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"Html2Image.java <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"exception","children":[{"title":"RenderException.java <span style='color:#111;'> 210B </span>","children":null,"spread":false}],"spread":true},{"title":"parser","children":[{"title":"HtmlParserImpl.java <span style='color:#111;'> 4.90KB </span>","children":null,"spread":false},{"title":"DocumentHolder.java <span style='color:#111;'> 153B </span>","children":null,"spread":false},{"title":"ParseException.java <span style='color:#111;'> 205B </span>","children":null,"spread":false},{"title":"HtmlParser.java <span style='color:#111;'> 854B </span>","children":null,"spread":false}],"spread":true},{"title":"imagemap","children":[{"title":"ElementBox.java <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"HtmlImageMap.java <span style='color:#111;'> 655B </span>","children":null,"spread":false},{"title":"HtmlImageMapImpl.java <span style='color:#111;'> 7.94KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"resources","children":[{"title":"test2.xhtml <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"emanuele.html <span style='color:#111;'> 473B </span>","children":null,"spread":false},{"title":"test1.html <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"gui","children":[{"title":"ava","children":[{"title":"html","children":[{"title":"BaseTest.java <span style='color:#111;'> 546B </span>","children":null,"spread":false},{"title":"renderer","children":[{"title":"ImageRendererImplTest.java <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"FormatNameUtilTest.java <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"parser","children":[{"title":"HtmlParserImplTest.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"imagemap","children":[{"title":"HtmlImageMapImplTest.java <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 34.30KB </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 75B </span>","children":null,"spread":false},{"title":"target","children":[{"title":"classes","children":[{"title":"gui","children":[{"title":"ava","children":[{"title":"html","children":[{"title":"renderer","children":[{"title":"FormatNameUtil.class <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"LayoutHolder.class <span style='color:#111;'> 183B </span>","children":null,"spread":false},{"title":"ImageRenderer.class <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"ImageRendererImpl.class <span style='color:#111;'> 7.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"exception","children":[{"title":"RenderException.class <span style='color:#111;'> 454B </span>","children":null,"spread":false}],"spread":true},{"title":"parser","children":[{"title":"HtmlParserImpl.class <span style='color:#111;'> 7.53KB </span>","children":null,"spread":false},{"title":"HtmlParser.class <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"ParseException.class <span style='color:#111;'> 445B </span>","children":null,"spread":false},{"title":"DocumentHolder.class <span style='color:#111;'> 178B </span>","children":null,"spread":false}],"spread":false},{"title":"Html2Image.class <span style='color:#111;'> 4.31KB </span>","children":null,"spread":false},{"title":"imagemap","children":[{"title":"ElementBox.class <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"HtmlImageMapImpl.class <span style='color:#111;'> 10.47KB </span>","children":null,"spread":false},{"title":"HtmlImageMap.class <span style='color:#111;'> 697B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"generated-test-sources","children":[{"title":"test-annotations","children":null,"spread":false}],"spread":true},{"title":"generated-sources","children":[{"title":"annotations","children":null,"spread":false}],"spread":true},{"title":"test-classes","children":[{"title":"test2.xhtml <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"gui","children":[{"title":"ava","children":[{"title":"html","children":[{"title":"renderer","children":[{"title":"FormatNameUtilTest.class <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"ImageRendererImplTest.class <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false}],"spread":false},{"title":"BaseTest.class <span style='color:#111;'> 688B </span>","children":null,"spread":false},{"title":"parser","children":[{"title":"HtmlParserImplTest.class <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false}],"spread":false},{"title":"imagemap","children":[{"title":"HtmlImageMapImplTest.class <span style='color:#111;'> 5.06KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"emanuele.html <span style='color:#111;'> 473B </span>","children":null,"spread":false},{"title":"test1.html <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 141B </span>","children":null,"spread":false},{"title":"libraries","children":[{"title":"Maven__junit_junit_4_8_1.xml <span style='color:#111;'> 462B </span>","children":null,"spread":false},{"title":"Maven__xml_apis_xml_apis_1_3_04.xml <span style='color:#111;'> 502B </span>","children":null,"spread":false},{"title":"Maven__org_xhtmlrenderer_flying_saucer_core_9_0_6.xml <span style='color:#111;'> 601B </span>","children":null,"spread":false},{"title":"Maven__xerces_xercesImpl_2_9_1.xml <span style='color:#111;'> 501B </span>","children":null,"spread":false},{"title":"Maven__net_sourceforge_nekohtml_nekohtml_1_9_14.xml <span style='color:#111;'> 566B </span>","children":null,"spread":false},{"title":"Maven__commons_io_commons_io_2_4.xml <span style='color:#111;'> 503B </span>","children":null,"spread":false}],"spread":true},{"title":"workspace.xml <span style='color:#111;'> 28.12KB </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 632B </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 10B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 260B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml.bak <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 芝阁信息 :
    谢谢,正好需要一个
    2019-04-07
  • yyl8918 :
    截图普通网页可行,但是对于阿里的quick bi的报表需要特殊处理
    2019-03-16
  • caoheng1999 :
    HTML字段换行的问题不能解决
    2018-05-20

免责申明

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