aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-06 11:48:51 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-06 11:48:51 +0200
commit271f249c0ff24b593bcc83c86edfeb236a551be5 (patch)
treeb141259d69a91486553048f9dddb7dbd168c045d /pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java
parenta1faffc1987ee9a523b2736b7df5d6cb2fb5ca42 (diff)
downloadpdf-as-4-271f249c0ff24b593bcc83c86edfeb236a551be5.tar.gz
pdf-as-4-271f249c0ff24b593bcc83c86edfeb236a551be5.tar.bz2
pdf-as-4-271f249c0ff24b593bcc83c86edfeb236a551be5.zip
Colum span handling corrected. #38
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java10
1 files changed, 6 insertions, 4 deletions
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 838d9d5a..939c2b3a 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
@@ -34,6 +34,7 @@ import java.util.Vector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import at.gv.egiz.pdfas.common.exceptions.PdfAsSettingsException;
import at.gv.egiz.pdfas.common.settings.IProfileConstants;
import at.gv.egiz.pdfas.common.settings.ISettings;
import at.gv.egiz.pdfas.common.settings.SignatureProfileSettings;
@@ -97,12 +98,13 @@ public class TableFactory implements IProfileConstants {
* @param tableID
* is the name of the table definition in the settings file
* @return a new abstract signature table
+ * @throws PdfAsSettingsException
* @see at.knowcenter.wag.egov.egiz.table.Style
* @see at.knowcenter.wag.egov.egiz.table.Table
* @see at.knowcenter.wag.egov.egiz.table.Entry
*/
public static Table createSigTable(SignatureProfileSettings profile, String tableID, OperationStatus operationStatus,
- ICertificateProvider certProvider)
+ ICertificateProvider certProvider) throws PdfAsSettingsException
{
String table_key_prefix = SIG_OBJ + profile.getProfileID() + "." + TABLE;
String table_key = table_key_prefix + tableID;
@@ -198,7 +200,7 @@ 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);
}
@@ -212,7 +214,7 @@ public class TableFactory implements IProfileConstants {
resolver.resolve(key, value, profile), key);
if (entry != null)
{
- //entry.setColSpan(2);
+ entry.setColSpan(2);
entry.setStyle(defaultCaptionStyle_);
row.add(entry);
}
@@ -260,7 +262,7 @@ public class TableFactory implements IProfileConstants {
sig_table.addRow(table_def, row);
}
}
-
+ sig_table.normalize();
return sig_table;
}