From 88486a007fa05986b09d319e62e266ce0db5b38a Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 1 Jul 2014 09:36:09 +0200 Subject: Signatureblock generation refactored --- .../at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java index 0ff1dd4e..838d9d5a 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java @@ -198,11 +198,25 @@ public class TableFactory implements IProfileConstants { resolver.resolve(key, value, profile), key); if (entry != null) { - entry.setColSpan(2); + //entry.setColSpan(2); entry.setStyle(defaultValueStyle_); row.add(entry); } } + if (TYPE_CAPTION.equals(type)) + { + // add a single value entry + ValueResolver resolver = new ValueResolver(certProvider, operationStatus); + String value = profile.getCaption(key); + Entry entry = new Entry(Entry.TYPE_CAPTION, + resolver.resolve(key, value, profile), key); + if (entry != null) + { + //entry.setColSpan(2); + entry.setStyle(defaultCaptionStyle_); + row.add(entry); + } + } if ((TYPE_VALUE + TYPE_CAPTION).equals(type) || (TYPE_CAPTION + TYPE_VALUE).equals(type)) { // add a caption value pair -- cgit v1.2.3