mfenniak / pyPdf

Pure-Python PDF Library; this repository is no longer maintained, please see https://github.com/knowah/PyPDF2/ insead.
https://github.com/knowah/PyPDF2/
Other
276 stars 85 forks source link

RectangleObject import missing & file handling workaround #32

Open sebastian-e-dox opened 13 years ago

sebastian-e-dox commented 13 years ago

I use pyPdf with Python 3.2 on my Windows machine and just got some errors I could resolve:

first one was the opening of a PDF file with the PdfFileReader. I used the code

 file = open("PATH_WITH_FILE_AND_EXTENSION", "rb")
 doc = PdfFileReader(file)```

The second thing I discovered was that the pdf.py misses the RectangleObject import from the generic.py file. So just add it.