itext学习笔记——开始使用itext
来源:互联网 发布:卡盟已备案域名出售 编辑:程序博客网 时间:2024/05/21 17:49
text7是在AGPL协议下的(就是凡是用到他的代码的项目需要开源,除非购买上商业版,不过我们在国内就不要管这么多啦),itext5、7字体设置默认不支持中文,需要下载远东字体包iTextAsian.jar,否则不能 往PDF文档中输出中文字体以及读取中文文档会出错。
引入相应的jar包,有两种方式选择:通过maven导入和手动添加相关的jar包(jar列表会给出)
1)通过maven导入,常用的jar包的dependency:
下面介绍每一个jar文件:
引入相应的jar包,有两种方式选择:通过maven导入和手动添加相关的jar包(jar列表会给出)
1)通过maven导入,常用的jar包的dependency:
<dependencies> <dependency> <groupId>com.itextpdf</groupId> <artifactId>kernel</artifactId> <version>7.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.itextpdf</groupId> <artifactId>io</artifactId> <version>7.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.itextpdf</groupId> <artifactId>layout</artifactId> <version>7.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.itextpdf</groupId> <artifactId>forms</artifactId> <version>7.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.itextpdf</groupId> <artifactId>pdfa</artifactId> <version>7.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.itextpdf</groupId> <artifactId>pdftest</artifactId> <version>7.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.7.18</version> </dependency></dependencies>
下面介绍每一个jar文件:
- kernel 和 io: 包含低层次常用的基础的函数
- layout: 包含高层次的函数
- forms: 有关AcorForms操作需要的函数库
- pdfa: 有关PDF/A(电子文档标准)的相关操作
- pdftest: test例子中所引用的库
- barcodes: 当你想要创建bar code(条代码?)时使用
- hyph: 当你想要文字有连字符时使用
- font-asian: 当你想要用CJK字符时 (Chinese / Japanese / Korean)
- sign: 当你想要使用电子签名是使用
dependencis的图如下所示:
3 0
- itext学习笔记——开始使用itext
- itext学习笔记
- iText学习笔记
- iText 学习使用
- itext的学习使用
- iText
- iText
- ITEXT
- iText
- iText
- itext
- itext
- itext
- IText
- [iTextSharp学习笔记]使用iText的基本构造块
- [iTextSharp学习笔记]使用iText的基本构造块
- [iTextSharp学习笔记]使用iText的基本构造块
- PDF笔记(三):Itext学习
- js学习笔记-setTimeout
- ssh基本原理,口令登陆和秘钥(免密)登陆
- C++deque双端队列
- 遍历request
- AndroidStudio的几种依赖方式
- itext学习笔记——开始使用itext
- ButterKnife7.0.1的用法
- myeclipse 内存初始化的太小,导致eclipse编程太卡。
- 织梦图集上传403
- 摆弄一天IDLE
- MongoDB 进阶模式设计
- _beginthreadex创建线程函数的使用
- AudioTrack学习笔记
- @ModelAttribute注解和SpringMVC表单modelAttribute属性