From 8edbc177564f55f3f6ef9ec8ec98d6c781b6ce52 Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 8 Nov 2010 15:34:58 +0000 Subject: 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 --- .../java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/knowcenter/wag/egov') 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(); -- cgit v1.2.3