From 400529060ae22fb9741ff7eb1c0ce81807b2d5f5 Mon Sep 17 00:00:00 2001 From: Andreas Abraham Date: Thu, 12 Nov 2020 14:50:02 +0100 Subject: Implemented invisbile sigantures visability --- .../pdfover/signer/pdfas/PdfAs4SignatureParameter.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'pdf-over-signer/pdf-over-sigpdfas4') 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; } + } -- cgit v1.2.3