How to extract text from pdf file in rails

hello friends,

I have a pdf file and i want to extract text/data from pdf file, I have already read so many gem but there is no proper documentation that by i can not able to apply, In Which Place can I put code like ( controller, modal, lib, etc.)

Please can any body help me…

gem link is here.

yomu gem : http://www.rubydoc.info/gems/yomu/0.2.4

pdf-reader gem : http://www.rubydoc.info/gems/pdf-reader/1.4.0 or http://pullmonkey.com/2010/01/18/ruby-pdf-reader-gem-tutorial/

combine_pdf gem : https://github.com/boazsegev/combine_pdf

hello friends,

I have a pdf file and i want to extract text/data from pdf file, I have
already read so many gem but there is no proper documentation that by i can
not able to apply, In Which Place can I put code like ( controller, modal,
lib, etc.)

You could put the code in a model (not derived from ActiveRecord). It is
up to you really, you can put it where you like.

Colin