From 8da1a7bc8e87ce56ada419fc68baa5c18cd77cc3 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 18 Nov 2022 11:44:54 +0100 Subject: also for new pages --- .../src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf-over-gui/src/main/java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java index afc6b0db..a6f70ff0 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java @@ -273,8 +273,8 @@ public class SignaturePanel extends JPanel { // get the new image if (newPage) { - int renderHeight = (int)(0.5 + this.scale(actualPageSize.getHeight(), U.PAGE_REL, U.IMAGE, Dim.X)); - int renderWidth = (int)(0.5 + this.scale(actualPageSize.getWidth(), U.PAGE_REL, U.IMAGE, Dim.Y)); + int renderHeight = (int)(0.5 + this.scale(this.pageHeight, U.PAGE_REL, U.IMAGE, Dim.X)); + int renderWidth = (int)(0.5 + this.scale(this.pageWidth, U.PAGE_REL, U.IMAGE, Dim.Y)); this.currentImage = new BufferedImage(renderWidth, renderHeight, BufferedImage.TYPE_INT_RGB); Graphics g = this.currentImage.getGraphics(); g.setColor(Color.WHITE); -- cgit v1.2.3