summaryrefslogtreecommitdiff
path: root/pdf-over-signer/pdf-over-sigpdfas4/src/main/java
diff options
context:
space:
mode:
authorBianca Schnalzer <bianca.schnalzer@egiz.gv.at>2017-12-04 13:18:27 +0100
committerBianca Schnalzer <bianca.schnalzer@egiz.gv.at>2017-12-04 13:18:27 +0100
commitd642bf1dd6c4a4e53f09b594da4847b08a435184 (patch)
treef11c1bb361388b4e83b461196ec27a3c86cba89a /pdf-over-signer/pdf-over-sigpdfas4/src/main/java
parentb6f43051a8064c3e3504e196783aa506232edb12 (diff)
downloadpdf-over-d642bf1dd6c4a4e53f09b594da4847b08a435184.tar.gz
pdf-over-d642bf1dd6c4a4e53f09b594da4847b08a435184.tar.bz2
pdf-over-d642bf1dd6c4a4e53f09b594da4847b08a435184.zip
Selecting invisible profile via command linepdf-over-4.1.16
Diffstat (limited to 'pdf-over-signer/pdf-over-sigpdfas4/src/main/java')
-rw-r--r--pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java23
1 files changed, 20 insertions, 3 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 0403de2f..600a5e75 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
@@ -48,6 +48,11 @@ public class PdfAs4SignatureParameter extends SignatureParameter {
private static final String PROFILE_ID_NOTE = "_NOTE";
/** The profile ID extension for PDF/A compatibility */
private static final String PROFILE_ID_PDFA = "_PDFA";
+
+ /**
+ * Visibility of signature block
+ */
+ public static boolean PROFILE_VISIBILITY=true;
private HashMap<String, String> genericProperties = new HashMap<String, String>();
@@ -155,10 +160,22 @@ public class PdfAs4SignatureParameter extends SignatureParameter {
String lang = getSignatureLanguage();
boolean useNote = (getProperty("SIG_NOTE") != null);
boolean usePdfACompat = (getSignaturePdfACompat());
-
- String profileId = PROFILE_ID_BASE;
+
+ //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;
+ PROFILE_ID_LANG_EN : PROFILE_ID_LANG_DE;}
+
+ else
+ {
+ profileId ="INVISIBLE";
+ }
if (useNote)
profileId += PROFILE_ID_NOTE;