PyPDF appears to not support new pdf versions (>=1.4). Switching to pikepdf should provide better support as it appears better maintained.