CrossRef / pdfextract

MOVED TO https://gitlab.com/crossref/pdfextract
https://gitlab.com/crossref/pdfextract
MIT License
508 stars 89 forks source link

error: undefined method `ascent' #23

Open fredcallaway opened 9 years ago

fredcallaway commented 9 years ago
error: undefined method `ascent' for #<PDF::Reader::Font:0x007ff94483b130>. Use --trace to view backtrace

Happens for all calls of pdf-extract. This installation error may be relevant:

Parsing documentation for libsvm-ruby-swig-0.4.0
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/libsvm.bundle, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/libsvm_wrap.o, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/svm.o, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/libsvm-ruby-swig/libsvm.bundle, skipping
Installing ri documentation for libsvm-ruby-swig-0.4.0

Thanks for any help anyone can provide!

osearbhain commented 9 years ago

Seems to be a duplicate of #17. The installation error looks worrying alright, I didn't get that. I installed on Linux Mint 17.1 with no errors.

bliaxiong commented 9 years ago

Getting the same error on Mac OSX 10.9.5

derickfay commented 9 years ago

me too - with the same installation error on Mac OS X 10.10.3

jgrossi commented 9 years ago

Hi @fredcallaway! Try to remove your actual pdf-reader installation:

gem uninstall pdf-reader

... and install pdf-reader version 1.2.0 (without this issue):

gem install pdf-reader -v 1.2.0

This should solve your problem :-)

DarrenN commented 8 years ago

@jgrossi that indeed solved the problem

jgrossi commented 8 years ago

that's nice @DarrenN ;-)

deepseven commented 8 years ago

That solved the problem for me too, thanks!

jgrossi commented 8 years ago

Awesome @deepseven :-)