1、先在项目pom.xml文件中引入iText的依赖。
3、编写生成pdf需要的步骤。创建Document, 绑定到PdfWriter, 往Document添加内容。
5、运行程序生成pdf,然后打开pdf查看生成的内容。