I am using PDFBox to covert a PDF file to TIF file.
But getting warning message as I do PDF to TIF conversion:
Code snippet looks like:
You need to call close() on the PDDocument inside the finally block, if you don't then the document will not be closed properly. Also, you must close all PDDocument objects that get created.
Updated code snippet looks like: