diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:13:10 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:13:10 +0000 |
commit | 29fe21cebaa0ed7811da9373ef514f6f5057b4e9 (patch) | |
tree | a1b786c9e150e06ad657642fc0412e928d0a2a54 /pdf-over-signer | |
parent | 98e041c461538d19883aa4a9a187c3da98d4ac03 (diff) | |
download | mocca-29fe21cebaa0ed7811da9373ef514f6f5057b4e9.tar.gz mocca-29fe21cebaa0ed7811da9373ef514f6f5057b4e9.tar.bz2 mocca-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')
-rw-r--r-- | pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java | 11 |
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()); |