Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
split-pdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carlos CEPEDA
split-pdf
Commits
acf2f31c
Commit
acf2f31c
authored
6 years ago
by
cepedac
Browse files
Options
Downloads
Patches
Plain Diff
New library added (to fix reading bugs) + some slight corrections in the code
parent
0ffae42f
Branches
version-2017
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#3003
passed
6 years ago
Stage: test
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pom.xml
+9
-4
9 additions, 4 deletions
pom.xml
src/main/java/fr/limos/splitpdf/SplitQRCodePages.java
+1
-1
1 addition, 1 deletion
src/main/java/fr/limos/splitpdf/SplitQRCodePages.java
src/main/java/fr/limos/splitpdf/Tools.java
+2
-2
2 additions, 2 deletions
src/main/java/fr/limos/splitpdf/Tools.java
with
12 additions
and
7 deletions
pom.xml
+
9
−
4
View file @
acf2f31c
...
...
@@ -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>
2018013
0
</version>
<version>
20180
8
13
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/java/fr/limos/splitpdf/SplitQRCodePages.java
+
1
−
1
View file @
acf2f31c
...
...
@@ -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
+
"-"
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/fr/limos/splitpdf/Tools.java
+
2
−
2
View file @
acf2f31c
...
...
@@ -119,11 +119,11 @@ public class Tools {
}
public
static
boolean
arrayHasAnEmptyString
(
String
[]
array
)
{
boolean
hasEmptyString
=
tru
e
;
boolean
hasEmptyString
=
fals
e
;
for
(
String
element
:
array
)
{
if
(
element
==
null
||
element
.
isEmpty
())
{
hasEmptyString
=
fals
e
;
hasEmptyString
=
tru
e
;
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment