Details
Description
It would make it possible to use Java 7 try-with-resources feature:
try (PDDocument doc = PDDocument.load(outputFile)) {
// bla-bla
// no need to call doc.close(); explicitly
}
P.S. Actually all org.apache.pdfbox.* classes with method close() could implement java.io.Closeable
Attachments
Issue Links
- is duplicated by
-
PDFBOX-1591 Resources should implement java.io.closeable
- Closed