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
undefined method `[]' for nil:NilClass #86
Comments
Thanks for the bug report. Can you generate a sample PDF that triggers this and email it to me at |
I see the same error. The glyph_code is 183 and for that when lookup happens @differences is nil. stack trace:
James -- I will send you a pdf file separately in an email ... |
Thanks @kedarmhaswade. I think this bug has been fixed in 1.3.2, can you try upgrading and let me know? |
Whoa! Thank you, @yob! Upgrading to 1.3.2 parses the file I sent you correctly. I think I agree with you. This bug seems to have been fixed. |
I have encountered a simple 1-page PDF generated by OpenOffice that causes the pdf-reader gem to throw an error when extracting text. The error occurs in the "int_to_name" method on line 127 of lib/pdf/reader/encoding.rb. The reason for the error is that @differences is nil.
Here is the error:
undefined method
[]' for nil:NilClass /Users/Justin/.rvm/gems/jruby-1.7.1/gems/pdf-reader-1.3.1/lib/pdf/reader/encoding.rb:127:in
int_to_name'The text was updated successfully, but these errors were encountered: