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

errors decoding pdf files #6

Closed
GoogleCodeExporter opened this issue May 30, 2015 · 2 comments
Closed

errors decoding pdf files #6

GoogleCodeExporter opened this issue May 30, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

I'm developing a Python's application using pdfrw and all seems ok, but i 
discovered that when i run my application with optimizations activated (python 
-OO) pdfrw can't decode any pdf and raises Exceptions.

By a quickly inspection of pdfrw's source code i found in pdfreader.py rows as 
these:
  assert source.next() == 'R'
  assert source.next() == '<<'
  assert source.next() == 'startxref' and source.floc > startloc

calling .next() in an assert will change the program working flow if 
optimizations are on or off.

Giuseppe

Original issue reported on code.google.com by gius.d...@gmail.com on 14 Sep 2012 at 7:48

@GoogleCodeExporter
Copy link
Author

I'm busy removing the asserts.

Thanks,
Pat

Original comment by pmaupin on 18 Sep 2012 at 2:52

  • Changed state: Accepted
  • Added labels: Priority-High
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

I believe this has been fixed in subversion.  Please see if it works for you.

Thanks,
Pat

Original comment by pmaupin on 18 Sep 2012 at 3:32

  • Changed state: Fixed

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

No branches or pull requests

1 participant