PyPDF2 giving me an invalid argument error -
i'm trying parse text pdf file. while doing tutorial of how pypdf2 got following error. did search answer ended finding none. appreciated.
traceback (most recent call last): file "d:/text_recognizer/main.py", line 4, in inputstream = pypdf2.pdffilereader(input) file "d:\kimkanna's class\python27\lib\site-packages\pypdf2\pdf.py", line 1084, in init self.read(stream) file "d:\kimkanna's class\python27\lib\site-packages\pypdf2\pdf.py", line 1689, in read stream.seek(-1, 2) ioerror: [errno 22] invalid argument
here fullcode
import pypdf2 open(".\\pdf\\test_sample.pdf","rb") input: inputstream = pypdf2.pdffilereader(input)
Comments
Post a Comment