1、 Problem description
Error information: org.apache.pdfbox . contentstream.PDFStreamEngine.operatorException ( PDFStreamEngine.java:917 ) – Cannot read JBIG2 image: jbig2-imageio is not installed
Relevant environmental information:
An error occurred when calling the renderimagewithdpi (int PageIndex, float DPI) method of pdfrenderer
Pdfrenderer uses pdfbox, POM coordinates are:
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.19</version>
</dependency>
2、 Solutions
Add the following POM dependencies
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>jbig2-imageio</artifactId>
<version>3.0.2</version>
</dependency>
Reference link:
https://blog.csdn.net/chengzuo875963/article/details/100913781 (this link has been used for reference, but it didn’t work after trying. Finally, we found the scheme of the following link through Google.)
https://github.com/levigo/jbig2-imageio/issues/54
Read More:
- ImageIO.read () unsupported image type when reading picture_ exception Unsupported Image Type
- An error is reported when installing the package directly in pycharm, but it can be installed through the terminal. Error non zero exit code (2)
- After windows VM is installed successfully, it is always prompted that this application may not work properly
- PackageNotInstalledError: Package is not installed in prefix
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- Configuration: error:!! OpenSSL is not properly installed on your system
- [docker] error in deleting image: image is referenced in multiple repositories
- matplotlib 1.3.1 requires nose, which is not installed. matplotlib 1.3.1 requires tornado, which is
- Can not start, can not find QT pligins “windows” problem after installing QT vs environment 2021-06-13
- When nodejs is installed: the error code is 2503
- After openstack neutron is installed, the Linux bridge starts and the error is resolved
- After matlab2018a is successfully installed, a licensing error appears when it is opened: – 8523
- Solve the problem of jdk8 after win7 is installed. Has value ‘1.8’, but ‘1.7’ is required
- Chrome Broswer V98 Can not manually add cookies locally, refresh cannot be retained, and the cookie item is red
- CONDA HTTP error is prompted when Anaconda prompt is installed and updated
- When angular4.0 starts the project, an error is reported: the “@ angular / compiler cli” package was not properly installed
- [Solved] Spark Writer tidb Error: read-uncommitted is not supported
- The 406 status code can not find acceptable representation is returned in spring MVC
- Installing R’s “mvtnorm” package in Windows system: solving the problem of the R package “mvtnorm” is not installed