From fa7481fd2b691d4fd7755b43596df99a4e5d2f55 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 13 Dec 2016 11:50:34 +0100 Subject: using SIG_PDFA_VALID valid configuration flag --- .../at/gv/egiz/pdfas/common/settings/IProfileConstants.java | 2 +- .../egiz/pdfas/common/settings/SignatureProfileSettings.java | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'pdf-as-common/src/main/java') 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); -- cgit v1.2.3