Browse Source

部分PDF转image报错问题修复

陈精华 2 years ago
parent
commit
1261e6aa03
2 changed files with 17 additions and 0 deletions
  1. 2 0
      pom.xml
  2. 15 0
      server/pom.xml

+ 2 - 0
pom.xml

@@ -24,6 +24,8 @@
         <concurrentlinkedhashmap.version>1.4.2</concurrentlinkedhashmap.version>
         <rocksdb.version>5.17.2</rocksdb.version>
         <pdfbox.version>2.0.26</pdfbox.version>
+        <jai-imageio.version>1.4.0</jai-imageio.version>
+        <jbig2-imageio.version>3.0.4</jbig2-imageio.version>
         <galimatias.version>0.2.1</galimatias.version>
         <bytedeco.version>1.5.2</bytedeco.version>
         <opencv.version>4.1.2-1.5.2</opencv.version>

+ 15 - 0
server/pom.xml

@@ -178,6 +178,21 @@
             <artifactId>pdfbox-tools</artifactId>
             <version>${pdfbox.version}</version>
         </dependency>
+        <dependency>
+            <groupId>com.github.jai-imageio</groupId>
+            <artifactId>jai-imageio-jpeg2000</artifactId>
+            <version>${jai-imageio.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>com.github.jai-imageio</groupId>
+            <artifactId>jai-imageio-core</artifactId>
+            <version>${jai-imageio.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.pdfbox</groupId>
+            <artifactId>jbig2-imageio</artifactId>
+            <version>${jbig2-imageio.version}</version>
+        </dependency>
         <dependency>
             <groupId>com.aspose</groupId>
             <artifactId>aspose-cad</artifactId>