aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/main/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
authorChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2015-04-20 15:14:26 +0200
committerChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2015-04-20 15:14:26 +0200
commit4d5019da1d4c1f3a3cfa7097300c4962879f3868 (patch)
treec0da135646823046e51e3be18d040dbd71d0644c /pdf-as-common/src/main/java/at/gv/egiz/pdfas
parent24906c4daba2b9717a0db9ab616d1a9e8ba3939b (diff)
downloadpdf-as-4-4d5019da1d4c1f3a3cfa7097300c4962879f3868.tar.gz
pdf-as-4-4d5019da1d4c1f3a3cfa7097300c4962879f3868.tar.bz2
pdf-as-4-4d5019da1d4c1f3a3cfa7097300c4962879f3868.zip
pdf/ua docs - added parameter in profiles
Diffstat (limited to 'pdf-as-common/src/main/java/at/gv/egiz/pdfas')
-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.java9
2 files changed, 11 insertions, 0 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 6cdfa0b3..2c2b941b 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,4 +92,6 @@ 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_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 dc1250fb..cbc1d601 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
@@ -212,4 +212,13 @@ public class SignatureProfileSettings implements IProfileConstants {
}
return false;
}
+
+ public boolean isPDFUA() {
+ SignatureProfileEntry entry = profileInformations.get(SIG_PDFUA_FORCE);
+ if (entry != null) {
+ String value = entry.getCaption();
+ return "true".equals(value);
+ }
+ return false;
+ }
}