excel2pdf:An easy way to convert Excel to PDF by Java code based on Apache POI and itextpdf. 利用 JAVA 编写把 Excel 转 PDF 解决方案,依赖POI与IText库的实现

上传者: 42109178 | 上传时间: 2021-06-07 09:12:46 | 文件大小: 82KB | 文件类型: ZIP
根据任意excel模版,将任意值填入到模版里面,然后生成pdf。(纯java实现) 支持多sheet页 举个例子: excel模版如下: 然后假如这里要将纳税人识号和税款所属期这个两个单元格的值写入我们想要的值 public class Excel2PDFTest { static String resourcesDir = "src/test/resources"; static String outputDir = "target/output"; @Before public void setUp() throws Exception { File output = new File(outputDir); output.mkdir(); } public static void main(String[

文件下载

资源详情

[{"title":"( 56 个子文件 82KB ) excel2pdf:An easy way to convert Excel to PDF by Java code based on Apache POI and itextpdf. 利用 JAVA 编写把 Excel 转 PDF 解决方案,依赖POI与IText库的实现","children":[{"title":"excel2pdf-master","children":[{"title":"README.md <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"PULL_REQUEST_TEMPLATE <span style='color:#111;'> 251B </span>","children":null,"spread":false},{"title":"ISSUE_TEMPLATE <span style='color:#111;'> 170B </span>","children":null,"spread":false}],"spread":true},{"title":"target","children":[{"title":"test-classes","children":[{"title":"com","children":[{"title":"github","children":[{"title":"caryyu","children":[{"title":"excel2pdf","children":[{"title":"Excel2PDFTest.class <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"dishuitest.xls <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"github","children":[{"title":"caryyu","children":[{"title":"excel2pdf","children":[{"title":"excelModel","children":[{"title":"LandTaxDeclarationVO.class <span style='color:#111;'> 9.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"ExcelConvertPDF$CellModel.class <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"ExcelConvertPDF.class <span style='color:#111;'> 7.95KB </span>","children":null,"spread":false},{"title":"annotation","children":[{"title":"CellVal.class <span style='color:#111;'> 479B </span>","children":null,"spread":false}],"spread":false},{"title":"uitil","children":[{"title":"PdfTableExcel.class <span style='color:#111;'> 12.83KB </span>","children":null,"spread":false},{"title":"Excel2Pdf$PDFPageEvent.class <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"POIUtil.class <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"Excel.class <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"Excel2Pdf.class <span style='color:#111;'> 5.74KB </span>","children":null,"spread":false},{"title":"PdfTool.class <span style='color:#111;'> 608B </span>","children":null,"spread":false},{"title":"Excel2Pdf$1.class <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"ExcelObject.class <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"Resource.class <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"POIImage.class <span style='color:#111;'> 3.33KB </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;'> 11.09KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"resources","children":[{"title":"dishuitest.xls <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"github","children":[{"title":"caryyu","children":[{"title":"excel2pdf","children":[{"title":"Excel2PDFTest.java <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"java","children":[{"title":"com","children":[{"title":"github","children":[{"title":"caryyu","children":[{"title":"excel2pdf","children":[{"title":"ExcelConvertPDF.java <span style='color:#111;'> 8.38KB </span>","children":null,"spread":false},{"title":"excelModel","children":[{"title":"LandTaxDeclarationVO.java <span style='color:#111;'> 10.25KB </span>","children":null,"spread":false}],"spread":false},{"title":"annotation","children":[{"title":"CellVal.java <span style='color:#111;'> 424B </span>","children":null,"spread":false}],"spread":false},{"title":"uitil","children":[{"title":"Excel.java <span style='color:#111;'> 648B </span>","children":null,"spread":false},{"title":"POIImage.java <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"Resource.java <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"PdfTableExcel.java <span style='color:#111;'> 13.06KB </span>","children":null,"spread":false},{"title":"ExcelObject.java <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"PdfTool.java <span style='color:#111;'> 458B </span>","children":null,"spread":false},{"title":"POIUtil.java <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false},{"title":"Excel2Pdf.java <span style='color:#111;'> 6.65KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"uiDesigner.xml <span style='color:#111;'> 8.59KB </span>","children":null,"spread":false},{"title":"libraries","children":[{"title":"Maven__org_hamcrest_hamcrest_core_1_3.xml <span style='color:#111;'> 520B </span>","children":null,"spread":false},{"title":"Maven__com_github_virtuald_curvesapi_1_04.xml <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"Maven__org_apache_poi_poi_3_17.xml <span style='color:#111;'> 465B </span>","children":null,"spread":false},{"title":"Maven__cglib_cglib_3_1.xml <span style='color:#111;'> 436B </span>","children":null,"spread":false},{"title":"Maven__org_apache_poi_poi_ooxml_3_17.xml <span style='color:#111;'> 507B </span>","children":null,"spread":false},{"title":"Maven__org_apache_commons_commons_collections4_4_1.xml <span style='color:#111;'> 593B </span>","children":null,"spread":false},{"title":"Maven__dom4j_dom4j_1_6_1.xml <span style='color:#111;'> 450B </span>","children":null,"spread":false},{"title":"Maven__org_apache_poi_poi_ooxml_schemas_3_17.xml <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"Maven__org_apache_xmlbeans_xmlbeans_2_6_0.xml <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"Maven__commons_io_commons_io_2_4.xml <span style='color:#111;'> 491B </span>","children":null,"spread":false},{"title":"Maven__commons_codec_commons_codec_1_10.xml <span style='color:#111;'> 531B </span>","children":null,"spread":false},{"title":"Maven__junit_junit_4_12.xml <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"Maven__org_ow2_asm_asm_4_2.xml <span style='color:#111;'> 446B </span>","children":null,"spread":false},{"title":"Maven__stax_stax_api_1_0_1.xml <span style='color:#111;'> 467B </span>","children":null,"spread":false},{"title":"Maven__com_itextpdf_itext_asian_5_2_0.xml <span style='color:#111;'> 520B </span>","children":null,"spread":false},{"title":"Maven__com_itextpdf_itextpdf_5_5_9.xml <span style='color:#111;'> 499B </span>","children":null,"spread":false},{"title":"Maven__com_alibaba_easyexcel_1_1_2_beat1.xml <span style='color:#111;'> 544B </span>","children":null,"spread":false}],"spread":false},{"title":"encodings.xml <span style='color:#111;'> 172B </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false}],"spread":true},{"title":"checkstyle-idea.xml <span style='color:#111;'> 610B </span>","children":null,"spread":false}],"spread":true},{"title":"excel2pdf.iml <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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