PyPDF appears to not support new pdf versions (>=1.4). Switching to pikepdf should provide better support as it appears better maintained.
Activity
[-]Switch from PyPDF to pikepdf[/-][+]Switch from PyPDF to pdfminer[/+]Eurybiadan commentedon Mar 24, 2022
Scratch that, pikepdf can't do text extraction. Perhaps https://github.com/pdfminer/pdfminer.six
iraklis10 commentedon Apr 12, 2022
Script run fine after running
pip3 install pdfminer.sixon a Windows 10 machine command line