aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/main/java
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-12-13 11:50:34 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-12-13 11:50:34 +0100
commitfa7481fd2b691d4fd7755b43596df99a4e5d2f55 (patch)
treeef1551dd9dc2e53f335969793a3350ade3474faf /pdf-as-common/src/main/java
parent4b53a01b80a9ecf08490b764b4f9d372da8d9361 (diff)
downloadpdf-as-4-fa7481fd2b691d4fd7755b43596df99a4e5d2f55.tar.gz
pdf-as-4-fa7481fd2b691d4fd7755b43596df99a4e5d2f55.tar.bz2
pdf-as-4-fa7481fd2b691d4fd7755b43596df99a4e5d2f55.zip
using SIG_PDFA_VALID valid configuration flag
Diffstat (limited to 'pdf-as-common/src/main/java')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java2
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java10
2 files changed, 9 insertions, 3 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java
index a2cee944..2a248cbe 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java
@@ -92,7 +92,7 @@ public interface IProfileConstants {
public final static String SIGNFIELD_VALUE = "adobeSignFieldValue";
public final static String TIMEZONE_BASE = "timezone";
public final static String SIG_PDFA1B_VALID = "SIG_PDFA1B_VALID";
- public final static String SIG_PDFA3B_VALID = "SIG_PDFA3B_VALID";
+ public final static String SIG_PDFA_VALID = "SIG_PDFA_VALID";
public final static String SIG_PDFUA_FORCE = "SIG_PDFUA_FORCE";
}
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java
index b6a1b6ca..fb19347a 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java
@@ -216,7 +216,13 @@ public class SignatureProfileSettings implements IProfileConstants {
return "1".equals(this.pdfAVersion);
}
- SignatureProfileEntry entry = profileInformations.get(SIG_PDFA1B_VALID);
+ SignatureProfileEntry entry = profileInformations.get(SIG_PDFA_VALID);
+ if (entry != null) {
+ String value = entry.getCaption();
+ return "true".equals(value);
+ }
+
+ entry = profileInformations.get(SIG_PDFA1B_VALID);
if (entry != null) {
String value = entry.getCaption();
return "true".equals(value);
@@ -238,7 +244,7 @@ public class SignatureProfileSettings implements IProfileConstants {
return "3".equals(this.pdfAVersion);
}
- SignatureProfileEntry entry = profileInformations.get(SIG_PDFA3B_VALID);
+ SignatureProfileEntry entry = profileInformations.get(SIG_PDFA_VALID);
if (entry != null) {
String value = entry.getCaption();
return "true".equals(value);