-
Notifications
You must be signed in to change notification settings - Fork 88
Problem with test file after installation (NoMethodError) #17
Comments
There's a number of other issues that discuss the lack of ascent in Font. Seems to be related to the version of pdf-reader used. I'm not sure what is the working combination of ruby version / pdf-extract version / pdf-reader version. Lost track a bit. |
Got this error too. |
#4 is closed but still not fixed. |
Hi Are you able to try an install from the github repo rather than Rubygems? I don't think the fix is packaged yet. |
I had some success by downgrading pdf-reader to version 1.2 - I didn't need to go back as far as version 1.1.1, as recommended in #4. The "undefined method 'ascent' " message went away, and I didn't need to downgrade anything else (e.g. pdf-core, prawn). gem uninstall pdf-reader |
Check this out: #23 |
These installation errors are caused by a faulty pdf-reader-1.3.3 gem version which you get from the repository. Try this with ruby 2.0.0-p643 (I used it with RVM; on Ubuntu precise LTS) You may need ttfunk-1.4.0 Get the cloned pdf-reader-1.3.3 (and uninstall all other versions) Then get the cloned pdf-extract (not the same as zip) I hope it helps... and many thanks for this tool |
Yep @AnikoG! I had to compile the gem and everything worked ;-) |
After Installation and trying to extract the referencies of a pdf appear the next problem:
The text was updated successfully, but these errors were encountered: