aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java
index 8ac4b85..4a80553 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java
@@ -789,7 +789,7 @@ public abstract class BinarySignature
iui.signProfile = profile;
iui.timeStamper = timeStamper;
- Document.compress = false;
+ Document.compress = true; // exthex : compress now, excluding the xobject later
// System.out.println("wprinz: STAMPING PDF");
@@ -833,6 +833,7 @@ public abstract class BinarySignature
// table_height = " + pdf_table.getTotalHeight());
PdfTemplate table_template = content.createTemplate(pdf_table.getTotalWidth(), pdf_table.getTotalHeight());
+ table_template.setCompress(Boolean.FALSE); // do not compress sigblock because we rewrite it afterwards for bin sig
pdf_table.writeSelectedRows(0, -1, 0, pdf_table.getTotalHeight(), table_template);
@@ -848,13 +849,14 @@ public abstract class BinarySignature
// table_position, content);
// exthex
StructContentHelper structHelper = new StructContentHelper(stamper, content, pi.getPage());
- structHelper.buildMainStructData(so, si);
-
+ structHelper.buildMainStructData(so);
+
structHelper.beginSigBlockContent();
content.addTemplate(table_template, pi.getX(), pi.getY() - pdf_table.getTotalHeight());
structHelper.endSigBlockContent();
+
ActualTablePos atp = new ActualTablePos();
atp.page = pi.getPage();