diff options
Diffstat (limited to 'pdf-as-common')
-rw-r--r-- | pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java | 2 | ||||
-rw-r--r-- | pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java | 10 |
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); |