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

PDF Reader throws errors #7

Open
carnophager opened this issue Sep 6, 2014 · 1 comment
Open

PDF Reader throws errors #7

carnophager opened this issue Sep 6, 2014 · 1 comment

Comments

@carnophager
Copy link

Hello, I tried to test the pdf reader using the SimpleReader.as class in the examples. But it throws errors with all pdfs I tested:

"Error: pdf header not found"

Then I changed the readInt() to readByte() in PRTokeniser readString function and now it throws this error:

RangeError: Error #1125: The index 1954050662 is out of range 257.
at org.purepdf.pdf::PRTokeniser/nextToken()[D:\home\Flash\classes3\org\purepdf\pdf\PRTokeniser.as:400]

@iamaleko
Copy link

Just replace all readInt() in PRTokeniser.as with readByte() and it will work fine.

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