aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-08-30 12:40:52 +0000
committerrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-08-30 12:40:52 +0000
commitf51afc6fc634d9640d7bbbee333ca32b3d80e579 (patch)
treec1c551cd32bde69daea67e6c2037a699d2b23dbd
parent0c1b6cf880ef8801ca884689c6172027b8910240 (diff)
downloadpdf-as-3-f51afc6fc634d9640d7bbbee333ca32b3d80e579.tar.gz
pdf-as-3-f51afc6fc634d9640d7bbbee333ca32b3d80e579.tar.bz2
pdf-as-3-f51afc6fc634d9640d7bbbee333ca32b3d80e579.zip
Correction to not create a new page, as it is done when signature block hasn't enough place, when signature block is invisible
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@796 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/signator/binary/BinarySignator_1_0_0.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/signator/binary/BinarySignator_1_0_0.java b/src/main/java/at/gv/egiz/pdfas/impl/signator/binary/BinarySignator_1_0_0.java
index 8757110..5766b89 100644
--- a/src/main/java/at/gv/egiz/pdfas/impl/signator/binary/BinarySignator_1_0_0.java
+++ b/src/main/java/at/gv/egiz/pdfas/impl/signator/binary/BinarySignator_1_0_0.java
@@ -208,12 +208,12 @@ public class BinarySignator_1_0_0 implements Signator
//check if signature block is invisible, and if so and if also signature block is positioned
//on a new page, prevent pdf-as to do that, because why should make a new page just for an invisible block
//added by rpiazzi
- /*if (signature_object.getSignatureTypeDefinition().getInvisibleFieldDefinitions().size()==SignatureTypes.REQUIRED_SIG_KEYS.length) {
+ if (signature_object.getSignatureTypeDefinition().getInvisibleFieldDefinitions().size()==SignatureTypes.REQUIRED_SIG_KEYS.length) {
if (pi.isMakeNewPage()) {
int pageNumber = pi.getPage();
pi = new PositioningInstruction(false, pageNumber-1, 0, 0);
}
- }*/
+ }
//end added
IncrementalUpdateInformation iui = IncrementalUpdateHelper.writeIncrementalUpdate(pdfDataSource, pdf_table, profile, pi, variable_field_definitions, all_field_definitions, invisible_field_definitions, invKZString, timeStamper, null, signature_object);