<div>Hi,</div><div> </div><div>Can anyone explain this bellow. Does PyPDF use some unsported part of the standard lib? Because there are no external modules required for it.</div><div>On another note, is there a way for the "Execute Project in Python Interactive" to use the vanilla Python interpreter rather than the IronPython one. I cant see a way to change this?</div>
<div> </div><div>Thanks</div><div> </div><div><strong>Python 2.7 Interactive Window</strong></div><div> </div><div> Resetting execution engine<br>>>> from pyPdf import PdfFileReader<br>>>> pdf = PdfFileReader(open('D:/Chris/Documents/sorting/short numbers/2370.pdf', 'rb'))<br>
>>> print 'test'<br>test<br>>>> </div><div> </div><div><strong>IronPython 2.7 Interactive Window</strong></div><div> </div><div>>>> from pyPdf import PdfFileReader<br>>>> pdf = PdfFileReader(open('D:/Chris/Documents/sorting/short numbers/2370.pdf', 'rb'))<br>
Traceback (most recent call last):<br> File "<string>", line 1, in <module><br> File "C:\Program Files (x86)\IronPython 2.7.1\lib\site-packages\pyPdf\pdf.py", line 374, in __init__<br> self.read(stream)<br>
File "C:\Program Files (x86)\IronPython 2.7.1\lib\site-packages\pyPdf\pdf.py", line 732, in read<br> num = readObject(stream, self)<br> File "C:\Program Files (x86)\IronPython 2.7.1\lib\site-packages\pyPdf\generic.py", line 87, in readObject<br>
return NumberObject.readFromStream(stream)<br> File "C:\Program Files (x86)\IronPython 2.7.1\lib\site-packages\pyPdf\generic.py", line 236, in readFromStream<br> return NumberObject(name)<br>TypeError: expected int, got str<br>
>>> </div>