PDFBOX-4071: use try-with; ensure FileInputStream is also close; ensure intermediate document is also closed