aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox-2/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
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/signing/pdfbox2/PADESPDFBOXSigner.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java
index 3e1b7d9a..df2a42bb 100644
--- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java
+++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java
@@ -847,6 +847,9 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
//BufferedImage outputImage = firstPage.convertToImage(BufferedImage.TYPE_4BYTE_ABGR, (int) targetRes);
+ visualDoc.close();
+ pdfRenderer = null;
+
BufferedImage cutOut = new BufferedImage((int) (position.getWidth() * factor),
(int) (position.getHeight() * factor), BufferedImage.TYPE_4BYTE_ABGR);
@@ -1006,4 +1009,4 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
return numbers;
}
-} \ No newline at end of file
+}