使用pdfbox2.0将PDF转换为图片时,文字分栏或复杂的页面会转换成白页面,后台报Cannot read JBIG2 image: jbig2-imageio is not installed错误,处理办法就是添加JBIG2 ImageIO的依赖
<dependency>
<groupId>com.levigo.jbig2</groupId>
<artifactId>levigo-jbig2-imageio</artifactId>
<version>2.0</version>
</dependency>
添加这个依赖后问题解决