made sure to close the PdfExtractor