diff options
author | pdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2010-11-08 15:34:58 +0000 |
---|---|---|
committer | pdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2010-11-08 15:34:58 +0000 |
commit | 8edbc177564f55f3f6ef9ec8ec98d6c781b6ce52 (patch) | |
tree | 7faf2b6c7ec05dbf62defe518110a6678453232a /src/main/java/at/knowcenter/wag/egov/egiz/pdf | |
parent | 0f58fa4b202c8dc56909d1403697fbf53b976307 (diff) | |
download | pdf-as-3-8edbc177564f55f3f6ef9ec8ec98d6c781b6ce52.tar.gz pdf-as-3-8edbc177564f55f3f6ef9ec8ec98d6c781b6ce52.tar.bz2 pdf-as-3-8edbc177564f55f3f6ef9ec8ec98d6c781b6ce52.zip |
added compression for signature update block (excluding xobject, including fonts!)
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@604 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/knowcenter/wag/egov/egiz/pdf')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java | 8 |
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();
|