Skip to content

An easy way to convert Excel 2003 and Excel 2007 to PDF by Java code based on Apache POI and itext7

License

Notifications You must be signed in to change notification settings

devops-utils/excel-to-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

excel-to-pdf

An easy way to convert Excel 2003 and Excel 2007 to PDF by Java code based on Apache POI and itext7

使用SDK

IExcel2PDF excel2PdfTool = EPFactory.getEP("case6.xlsx", "output1.pdf", System.getProperty("user.dir") + "/doc/font/SimHei.TTF");
if(excel2PdfTool != null) {
    excel2PdfTool.convert();
}

maven

Maven 引用方式

<dependency>
    <groupId>com.github.zhangchunsheng</groupId>
    <artifactId>excel-to-pdf</artifactId>
    <version>1.0.2</version>
</dependency>
https://github.com/itext/itext7
https://www.tutorialspoint.com/itext/itext_text_annotation.htm

捐助 donate

支付宝 微信