correctly turn off PDFBox logging
update deprecated methods
Revert "update deprecated methods"

This reverts commit ea5e9bca80793bda960074bec58feb593b7ecf2c.
Revert "Revert "update deprecated methods""

This reverts commit 91cf0edcd172a73a44989be1851953bc9c6596e2.