From 04df577b18d51093df377c9dc602381ff9426e91 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 26 Aug 2014 16:05:40 +0200 Subject: Removed output for unnecessary warning --- .../src/main/java/at/gv/egiz/pdfas/lib/impl/status/PDFObject.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pdf-as-lib/src/main/java/at') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/status/PDFObject.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/status/PDFObject.java index 6aff5495..628c87a1 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/status/PDFObject.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/status/PDFObject.java @@ -70,6 +70,9 @@ public class PDFObject { doc.close(); } this.doc = PDDocument.load(new ByteArrayInputStream(this.originalDocument)); + if(this.doc != null) { + this.doc.getDocument().setWarnMissingClose(false); + } } public PDDocument getDocument() { -- cgit v1.2.3