Java 生成PDF文件

  生成PDF文件需引入包,pom.xml文件加:

<!-- pdf -->
<dependency>
	<groupId>com.itextpdf</groupId>
	<artifactId>itext7-core</artifactId>
	<version>7.1.1</version>
	<type>pom</type>
</dependency>
<!-- pdf -->

  

参考资料:https://github.com/iTextCN/itext7-in-mandarin/tree/master/guide/chapter1

原文地址:https://www.cnblogs.com/Big-Boss/p/13853906.html