使用poi+itext将excel转为pdf

上传者: hades_jie | 上传时间: 2021-05-12 14:29:38 | 文件大小: 39KB | 文件类型: ZIP
看到现在网上excel转pdf的代码很少,在csdn上找到一个还不能用,只能做简单的转换,只好自己写了一个,代码是一个maven工程,用eclipse创建,支持单元格合并等复杂的excel,同时能同步单元格样式到pdf中。但是不支持将excel中的图片转化到pdf中,

文件下载

资源详情

[{"title":"( 30 个子文件 39KB ) 使用poi+itext将excel转为pdf","children":[{"title":"test-exceltopdf","children":[{"title":"test-file","children":[{"title":"test.pdf <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"test.xls <span style='color:#111;'> 25.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 829B </span>","children":null,"spread":false},{"title":"target","children":[{"title":"test-classes","children":null,"spread":false},{"title":"classes","children":[{"title":"META-INF","children":[{"title":"maven","children":[{"title":"test","children":[{"title":"test-exceltopdf","children":[{"title":"pom.xml <span style='color:#111;'> 829B </span>","children":null,"spread":false},{"title":"pom.properties <span style='color:#111;'> 247B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"MANIFEST.MF <span style='color:#111;'> 108B </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"exceltopdf","children":[{"title":"test","children":[{"title":"ExcelToPdfFactoryTest.class <span style='color:#111;'> 951B </span>","children":null,"spread":false}],"spread":true},{"title":"api","children":[{"title":"ConvertFactory.class <span style='color:#111;'> 193B </span>","children":null,"spread":false}],"spread":true},{"title":"exceltopdf","children":[{"title":"CellCoordinate.class <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"WorkBookStruct.class <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"SheetStruct.class <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"StyleSyncer.class <span style='color:#111;'> 3.85KB </span>","children":null,"spread":false},{"title":"ExcelToPdfFactory.class <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"ParaFactory.class <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"PdfBuilder.class <span style='color:#111;'> 7.58KB </span>","children":null,"spread":false},{"title":"PdfPageSetting.class <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 664B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"test","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":[{"title":"test","children":[{"title":"exceltopdf","children":[{"title":"test","children":[{"title":"ExcelToPdfFactoryTest.java <span style='color:#111;'> 500B </span>","children":null,"spread":false}],"spread":true},{"title":"api","children":[{"title":"ConvertFactory.java <span style='color:#111;'> 158B </span>","children":null,"spread":false}],"spread":true},{"title":"exceltopdf","children":[{"title":"ParaFactory.java <span style='color:#111;'> 574B </span>","children":null,"spread":false},{"title":"ExcelToPdfFactory.java <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"StyleSyncer.java <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"CellCoordinate.java <span style='color:#111;'> 867B </span>","children":null,"spread":false},{"title":"PdfPageSetting.java <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"PdfBuilder.java <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"SheetStruct.java <span style='color:#111;'> 3.94KB </span>","children":null,"spread":false},{"title":"WorkBookStruct.java <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 567B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • chenjiaqing1993128 :
    刚好在做这个,及时雨啊
    2018-10-27
  • warabe58 :
    不错,可以用的
    2018-08-20
  • weixin_41492022 :
    刚试了下,复杂表格可以转 大神知道怎么把带图片的也转过去吗?项目里有图片。。。
    2018-08-13
  • super-Liu :
    还没看,希望有参考价值!
    2018-02-27
  • sdylag :
    很适用,不错的分享!
    2018-01-22

免责申明

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