Consider using pikepdf instead of PyPDF2
https://github.com/pikepdf/pikepdf
From reddit:
pikepdf is a PDF manipulation library designed to be a compelling replacement for PyPDF2 (which is currently unmaintained).
https://github.com/pikepdf/pikepdf
From reddit:
pikepdf is a PDF manipulation library designed to be a compelling replacement for PyPDF2 (which is currently unmaintained).