When running this code
import PyPDF2 as pdf
bikeins = open('pdffileproj12.pdf','rb')
read_bikeins = pdf.PdfFileReader(bikeins)
I get this error
read_bikeins = pdf.PdfFileReader(bikeins) Traceback (most recent call last):
File "", line 1, in read_bikeins = pdf.PdfFileReader(bikeins)
File "C:\Users\Naveen Raj\Anaconda3\lib\site-packages\PyPDF2\pdf.py", line 1084, in init self.read(stream)
File "C:\Users\Naveen Raj\Anaconda3\lib\site-packages\PyPDF2\pdf.py", line 1805, in read assert xrefstream["/Type"] == "/XRef"
TypeError: string indices must be integers
Find the PDF here
bikeins
? – Reut Sharabanipdffileproj.pdf
file – Bentaye