aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox-2/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authorEmina Ahmetovic <emina.ahmetovic@egiz.gv.at>2020-07-30 19:33:51 +0200
committerEmina Ahmetovic <emina.ahmetovic@egiz.gv.at>2020-07-30 19:33:51 +0200
commit5db9e728f5033b0281b1a8c7e6788dfa577b0c4f (patch)
tree6ec62d08c29e8c282f95d4130a3e656ab6d1d4cf /pdf-as-pdfbox-2/src/main/java/at/gv/egiz
parentd50be1c016e3abd757babb81e239d8d545cce390 (diff)
downloadpdf-as-4-5db9e728f5033b0281b1a8c7e6788dfa577b0c4f.tar.gz
pdf-as-4-5db9e728f5033b0281b1a8c7e6788dfa577b0c4f.tar.bz2
pdf-as-4-5db9e728f5033b0281b1a8c7e6788dfa577b0c4f.zip
rename signature profile
Diffstat (limited to 'pdf-as-pdfbox-2/src/main/java/at/gv/egiz')
-rw-r--r--pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/positioning/Positioning.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/positioning/Positioning.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/positioning/Positioning.java
index 8aaa51ac..52a865b1 100644
--- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/positioning/Positioning.java
+++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/positioning/Positioning.java
@@ -162,7 +162,7 @@ public class Positioning {
public static PositioningInstruction adjustSignatureTableandCalculatePosition(
final PDDocument pdfDataSource, IPDFVisualObject pdf_table,
TablePos pos, ISettings settings) throws PdfAsException {
- List<PDSignatureField> pdSignatureFieldList = new ArrayList<>();
+ List<PDSignatureField> pdSignatureFieldList;
PdfBoxUtils.checkPDFPermissions(pdfDataSource);
int counter = 0;
@@ -326,8 +326,9 @@ public class Positioning {
// we do have text take SIGNATURE_MARGIN
pos_y = page_height - page_length - SIGNATURE_MARGIN_VERTICAL;
if (pos_y - footer_line <= table_height) {
- if(counter!=0)
+ if(counter!=0){
make_new_page = false;
+ }
else{
make_new_page = true;
page++;