From 3a65ea135869d36db4d26120fe6a408958463878 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Wed, 5 Jul 2023 11:01:15 +0200 Subject: fix(positioning): only add a new page on less space if no concrete page was requested --- .../java/at/gv/egiz/pdfas/lib/impl/pdfbox2/positioning/Positioning.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib') 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 491a6f31..70d9044b 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 @@ -282,7 +282,7 @@ public class Positioning { long numberOfExistingSignatures, ISettings settings, SignatureProfileSettings profilConfig) throws PdfAsException { if (pos_y - footer_line <= table_height) { - make_new_page = checkIfNewPageIsAllowed(true, numberOfExistingSignatures, settings, profilConfig); + make_new_page = checkIfNewPageIsAllowed(pos.isPauto(), numberOfExistingSignatures, settings, profilConfig); if (make_new_page) { page++; -- cgit v1.2.3