diff options
Diffstat (limited to 'pdf-as-common')
3 files changed, 11 insertions, 1 deletions
diff --git a/pdf-as-common/build.gradle b/pdf-as-common/build.gradle index 0198dc31..484b31b4 100644 --- a/pdf-as-common/build.gradle +++ b/pdf-as-common/build.gradle @@ -13,7 +13,7 @@ repositories { dependencies { compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.5' - compile group: 'org.apache.pdfbox', name: 'pdfbox', version: '1.8.2' + compile group: 'org.apache.pdfbox', name: 'pdfbox', version: '1.8.4' compile group: 'commons-collections', name: 'commons-collections', version: '3.2' compile group: 'ognl', name: 'ognl', version: '3.0.6' testCompile group: 'junit', name: 'junit', version: '4.+' 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 1ed90cec..02780b8c 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 @@ -89,4 +89,5 @@ public interface IProfileConstants { public final static String TMP_DIR_DEFAULT_VALUE = "pdfastmp"; public final static String SIGNING_REASON = "adobeSignReasonValue"; + public final static String SIG_PDFA1B_VALID = "SIG_PDFA1B_VALID"; } 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 8af69382..84a9e6f8 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 @@ -190,4 +190,13 @@ public class SignatureProfileSettings implements IProfileConstants { public String getSigningReason() { return this.getValue(SIGNING_REASON); } + + public boolean isPDFA() { + SignatureProfileEntry entry = profileInformations.get(SIG_PDFA1B_VALID); + if (entry != null) { + String value = entry.getCaption(); + return "true".equals(value); + } + return false; + } } |