在导出pdf文件时,因为数据List对象里边有中文,所以在用pdfbox时候得自己添加进去中文字符集,从github上下载NotoSansCjk-Regular.ttc字符集后,项目运行报错:java.io.IOException: 'head' table is mandatory
用的pdfbox版本是3.0.5,后边采取pdfbox降版、换.ttf .otf字符集、ttc提取ttf等方法,仍然加载字符集报错:True Type fonts using CFF outlines are not supported等
后来直接改用windows自带的字体simhei.ttf,运行成功,导出文件无乱码。