Skip to content
Snippets Groups Projects
Commit acf2f31c authored by cepedac's avatar cepedac
Browse files

New library added (to fix reading bugs) + some slight corrections in the code

parent 0ffae42f
Branches version-2017
No related tags found
No related merge requests found
Pipeline #3003 passed
......@@ -15,22 +15,27 @@
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.3.2</version>
<version>3.3.3</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>3.3.2</version>
<version>3.3.3</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-app</artifactId>
<version>2.0.8</version>
<version>2.0.12</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>jbig2-imageio</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20180130</version>
<version>20180813</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
......@@ -205,7 +205,7 @@ public class SplitQRCodePages extends PDFStreamEngine
invalidQRfound.append(pageNum+1).append(";").append(decodedText).append("\r\n");
}
if (Tools.arrayHasAnEmptyString(decodedValues)) {
if (!Tools.arrayHasAnEmptyString(decodedValues)) {
filename = "";
for (String val : decodedValues) {
filename += (val + "-");
......
......@@ -119,11 +119,11 @@ public class Tools {
}
public static boolean arrayHasAnEmptyString(String[] array) {
boolean hasEmptyString = true ;
boolean hasEmptyString = false ;
for (String element : array) {
if (element == null || element.isEmpty()) {
hasEmptyString = false ;
hasEmptyString = true ;
break ;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment