From 4f1e143c6eac9e1b57b2400bf5b0761a8b072419 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 1 Apr 2014 16:50:03 +0200 Subject: PDFBOX Table generation incl. QR Code detection and Positioning is done --- .../java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java | 1 + .../gv/egiz/pdfas/common/settings/SignatureProfileSettings.java | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'pdf-as-common/src/main/java/at') 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; + } } -- cgit v1.2.3