From 29fe21cebaa0ed7811da9373ef514f6f5057b4e9 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:13:10 +0000 Subject: + 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 --- .../main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pdf-over-signer/pdf-over-sigpdfas/src/main') 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()); -- cgit v1.2.3