diff options
author | Thomas Lenz <thomas.lenz@iaik.tugraz.at> | 2023-01-12 12:03:18 +0000 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@iaik.tugraz.at> | 2023-01-12 12:03:18 +0000 |
commit | 27b8f07c7c0b5cac2c1eae6181335c8da03722b3 (patch) | |
tree | 2d32eea92fb15d06bcb220edf8a7d83299663449 /pdf-as-pdfbox-2 | |
parent | 388a5e4999b743a07a29ac8d9b710dfcd7c9f233 (diff) | |
parent | d10d0cf89d14d17d31b0a38c4f050190e276325a (diff) | |
download | pdf-as-4-27b8f07c7c0b5cac2c1eae6181335c8da03722b3.tar.gz pdf-as-4-27b8f07c7c0b5cac2c1eae6181335c8da03722b3.tar.bz2 pdf-as-4-27b8f07c7c0b5cac2c1eae6181335c8da03722b3.zip |
Merge branch 'jakob.heher-master-patch-78942' into 'development'
Properly close PDDocument in generateVisibleSignaturePreview
See merge request egiz/pdf-as-4!6
Diffstat (limited to 'pdf-as-pdfbox-2')
-rw-r--r-- | pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java | 5 |
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 +} |