pdf写入内容参考:
https://blog.csdn.net/sb_jb/article/details/79106070
pdf设置格式参考
https://zhidao.baidu.com/question/1448831871241451100.html
http://www.cnblogs.com/qlqwjy/p/8213989.html
word转pdf
https://blog.csdn.net/u011763190/article/details/51017682
Aspose.Words.SaveFormat.PDF:收费
pageoffice:收费
docx4j:乱码,并且只支持docx文件
JobConverter + OpenOffice:windows系统,必须安装openoffice
SaveAsPDFandXPS + jacob :Windows操作系统下,电脑里有office
itext生成PDF文件 :完全重新一页一页生成
https://www.cnblogs.com/shuilangyizu/p/5760928.html
poi:完全重新一页一页生成
https://blog.csdn.net/makang456/article/details/70161037
itext生成pdf;
1、添加itext.jar
2、pom.xml:添加(否则报错:com.lowagie.text.DocumentException: Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.):
<dependency>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
<version>1.3</version>
</dependency>
document.add(pt);报DocumentException: java.lang.NullPointerException
在pom.xml中添加
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itextpdf</artifactId>
<version>5.5.0</version>
<scope>test</scope>
</dependency>