aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox-2
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-05-31 19:15:56 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-05-31 19:15:56 +0200
commite6c60914f63c7ad0381ac008542b4ef9c1938383 (patch)
tree9154e38a9ad84f6a6f1a273ae9decb3f195080c1 /pdf-as-pdfbox-2
parentaa45585a4cb9e7aff0ef3da3c6a6fe43b9ace98c (diff)
downloadpdf-as-4-e6c60914f63c7ad0381ac008542b4ef9c1938383.tar.gz
pdf-as-4-e6c60914f63c7ad0381ac008542b4ef9c1938383.tar.bz2
pdf-as-4-e6c60914f63c7ad0381ac008542b4ef9c1938383.zip
tmp
Diffstat (limited to 'pdf-as-pdfbox-2')
-rw-r--r--pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java
index 6345a714..a6a7ced3 100644
--- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java
+++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java
@@ -916,7 +916,7 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
if(placeholders!=null) {
for(int i = 0; i < placeholders.size(); ++i) {
//take smallest id
- if(!existingPlaceholders.contains(placeholders.get(i).getPlaceholderName())) {
+ if(!existingPlaceholders.contains(placeholders.get(i).getPlaceholderName())) {
SignaturePlaceholderData spd = placeholders.get(i);
if (spd.getId() != null) {
if(result == null) {
@@ -924,6 +924,7 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
} else {
String currentID = result.getId();
String testID = spd.getId();
+ //TODO why compare as string?
if(testID.compareToIgnoreCase(currentID) < 0) {
result = spd;
}