From 8b6eeda673ab545dadf6ffedde1654f6a0604428 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 15 May 2014 10:11:39 +0200 Subject: TTF Fonts width fix, null value in signature block fix, Signature reason from config --- .../egiz/pdfas/common/settings/SignatureProfileSettings.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java') 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 84a9e6f8..45b5c375 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 @@ -133,7 +133,7 @@ public class SignatureProfileSettings implements IProfileConstants { String value = others.get(key); key = key.substring(key.lastIndexOf('.') + 1); - profileSettings.put(key, others.get(value)); + profileSettings.put(key, value); logger.debug(" Settings: " + key + " : " + value); } @@ -180,6 +180,10 @@ public class SignatureProfileSettings implements IProfileConstants { return value; } + String v = profileSettings.get(key); + if (v != null) { + return v; + } return getDefaultValue(key); } @@ -191,6 +195,10 @@ public class SignatureProfileSettings implements IProfileConstants { return this.getValue(SIGNING_REASON); } + public String getSignFieldValue() { + return this.getValue(SIGNFIELD_VALUE); + } + public boolean isPDFA() { SignatureProfileEntry entry = profileInformations.get(SIG_PDFA1B_VALID); if (entry != null) { -- cgit v1.2.3