Currently I am using the PyPDF 2 as a dependency.
I have encountered some encrypted files and handled them as you normally would (in the following code):
<
Implement qpdf using python with pikepdf library.
import pikepdf pdf = pikepdf.open('unextractable.pdf') pdf.save('extractable.pdf')