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
NoMethodError: undefined method `downcase' for nil:NilClass #2
Comments
This should definitely not happen. However, without the source PDF I can't really do much - can you provide it? |
I've tried with different documents, all raise same error. For example I took this https://wwwimages2.adobe.com/www.adobe.com/content/dam/Adobe/ru/legal/licenses-terms/pdf/PlatformClients_PC_WWEULA-ru_RU-20150407_1357.pdf file |
I have tried with your provided document and it works fine. Which Ruby version are you using? Try Ruby 2.3 if you are not using it. |
I'm using
|
Rails version should be irrelevant since the code you presented didn't have anything to do with Rails. However, if this was not the case, try using the code without Rails and see if it works then. |
I've test merge method with the file provided by @olegsobchuk at both ruby and rails environment, it's work fine.
|
@gaga5lala Thanks! |
I don't know why but in
as you can see there is Module and that makes error BTW it works in pure ruby (in |
Okay, so it seems we found the culprit, namely ActiveSupport prepending modules to built-in classes which shouldn't be done globally - that's what refinements are for. |
@olegsobchuk @gaga5lala I have updated the serialization implementation to work around this problem. Please try the code from Github and see if it works with your setup. |
Hi, I've tried merge document with next steps
but it raise:
The text was updated successfully, but these errors were encountered: