diff options
Diffstat (limited to 'pdf-over-signer/pdf-over-sigpdfas4')
-rw-r--r-- | pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java b/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java index aed66b9b..57f36fbd 100644 --- a/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java +++ b/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java @@ -166,30 +166,28 @@ public class PdfAs4SignatureParameter extends SignatureParameter { boolean useNote = (getProperty("SIG_NOTE") != null); boolean usePdfACompat = (getSignaturePdfACompat()); - //Add Signature Param here// String profileId; - if (PROFILE_VISIBILITY) - { - profileId = PROFILE_ID_BASE; - profileId += (lang != null && lang.equals("en")) ? - PROFILE_ID_LANG_EN : PROFILE_ID_LANG_DE;} - - else + if (!PROFILE_VISIBILITY || this.profile.equals("Unsichtbar")) { profileId ="INVISIBLE"; + } else { + profileId = PROFILE_ID_BASE; + profileId += (lang != null && lang.equals("en")) ? + PROFILE_ID_LANG_EN : PROFILE_ID_LANG_DE; } + if (useNote) profileId += PROFILE_ID_NOTE; if (usePdfACompat) profileId += PROFILE_ID_PDFA; - log.debug("Profile ID: " + profileId); + log.debug("Profile ID: {0}", profileId); return profileId; } @@ -202,6 +200,7 @@ public class PdfAs4SignatureParameter extends SignatureParameter { public String getSignatureProfile() { return this.profile; } + } |