Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RE: PdfReader cannot read the io.BytesIO properly in Python 3.5 #59

Closed
LiuGavin opened this issue Jul 14, 2016 · 1 comment
Closed

RE: PdfReader cannot read the io.BytesIO properly in Python 3.5 #59

LiuGavin opened this issue Jul 14, 2016 · 1 comment

Comments

@LiuGavin
Copy link

It seems there is a "tab/space" issue on line 499 in pdfreader.py, where it currently only do the 'convert_load' in case of file, but not from 'in-memory'(such as BytesIO) object. Ideally it should be done in both case, so I believe this is a typo that mis-place the line "fdata=conver_load(fdata)" into the 'file-reading' section only.

After I fix the 'tab' issue above(so that it applies for both case), I can use it for BytesIO object now.

By the way, it seems this bug only occurs in Python 3.5, I don't have any issue with Python 3.4.

@takluyver
Copy link
Collaborator

This should be fixed in pdfrw 0.3, which was just released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants