summaryrefslogtreecommitdiff
path: root/pdf-over-signer/pdf-over-sigpdfas/src/main/java
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:13:10 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:13:10 +0000
commit29fe21cebaa0ed7811da9373ef514f6f5057b4e9 (patch)
treea1b786c9e150e06ad657642fc0412e928d0a2a54 /pdf-over-signer/pdf-over-sigpdfas/src/main/java
parent98e041c461538d19883aa4a9a187c3da98d4ac03 (diff)
downloadpdf-over-29fe21cebaa0ed7811da9373ef514f6f5057b4e9.tar.gz
pdf-over-29fe21cebaa0ed7811da9373ef514f6f5057b4e9.tar.bz2
pdf-over-29fe21cebaa0ed7811da9373ef514f6f5057b4e9.zip
+ added signature note (TODO: localize in composite)
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@201 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-signer/pdf-over-sigpdfas/src/main/java')
-rw-r--r--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/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java
index 81302bf2..d613232f 100644
--- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java
+++ b/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());