summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-signer
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2012-11-06 16:40:21 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2012-11-06 16:40:32 +0100
commitd818fad6487a4824df6ba12fb69a78281a97062f (patch)
treeb9b74537380811d8f31c6ff5e7694d509c3cf323 /trunk/pdf-over-signer
parent00fdf0551501ac014fd03503507e77ef8149997b (diff)
downloadpdf-over-d818fad6487a4824df6ba12fb69a78281a97062f.tar.gz
pdf-over-d818fad6487a4824df6ba12fb69a78281a97062f.tar.bz2
pdf-over-d818fad6487a4824df6ba12fb69a78281a97062f.zip
+ added signature note (TODO: localize in composite)
Diffstat (limited to 'trunk/pdf-over-signer')
-rw-r--r--trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java
index 81302bf2..d613232f 100644
--- a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java
+++ b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java
@@ -37,6 +37,12 @@ public class PDFASSigner implements Signer {
* The profile ID
*/
protected static final String PROFILE_ID = "SIGNATURBLOCK_SMALL_DE";
+
+ /**
+ * The profile ID
+ * if a signature note is set
+ */
+ protected static final String PROFILE_NOTE_ID = "SIGNATURBLOCK_SMALL_DE_NOTE";
/**
* The template URL
@@ -84,6 +90,11 @@ public class PDFASSigner implements Signer {
params.setProfileOverrideValue("SIG_LABEL", parameter
.getEmblem().getFileName());
}
+
+ if(parameter.getProperty("SIG_NOTE") != null) {
+ params.setProfileOverrideValue("SIG_NOTE", parameter.getProperty("SIG_NOTE"));
+ params.setSignatureProfileId(PROFILE_NOTE_ID);
+ }
// Prepare Output sink
state.setOutput(new ByteArrayDataSink());