diff options
Diffstat (limited to 'pdf-over-signer/pdf-over-sigpdfas/src')
-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()); |