aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-20 11:58:13 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-20 11:58:13 +0200
commit217ffc112176ded156ef581c73409d8fa194bb54 (patch)
tree6e138e9a04216240a2fbc8dd06d75022225053b2 /pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl
parenta19cbbe8105efe64c3a57823e087fa8228e7136d (diff)
downloadpdf-as-4-217ffc112176ded156ef581c73409d8fa194bb54.tar.gz
pdf-as-4-217ffc112176ded156ef581c73409d8fa194bb54.tar.bz2
pdf-as-4-217ffc112176ded156ef581c73409d8fa194bb54.zip
Is Visible configuration added
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java
index a7dd3138..04448b96 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java
@@ -39,7 +39,20 @@ public class SignatureProfileConfiguration extends SpecificBaseConfiguration
public boolean isVisualSignature() {
String key = SIG_OBJECT + SEPERATOR + profileID + SEPERATOR + TABLE + SEPERATOR + MAIN;
- return this.configuration.hasPrefix(key);
+
+ String isVisibleKey = SIG_OBJECT + SEPERATOR + profileID + SEPERATOR + ISVISIBLE;
+
+ String isVisibleValue = this.configuration.getValue(isVisibleKey);
+
+ boolean isVisible = true;
+
+ if(isVisibleValue != null) {
+ if(isVisibleValue.equals(FALSE)) {
+ isVisible = false;
+ }
+ }
+
+ return this.configuration.hasPrefix(key) && isVisible;
}
public String getDefaultPositioning() {