I am using Apache PDFBox to read some PDF files. When I am done with the PDF's I need to release the PDF documents. To do this I call the close() method which throws an exception. The program also allows to edit the PDF in which case an exception could be thrown but my program just closes them which shouldn't error. In this case is it acceptable to just catch the exception and leave the catch block empty or is there a better way to deal with it?
For example:
try {
pdf.close();
catch {
//empty
}