garg.ashish86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2011-Nov-20 14:03 UTC
scanning word document in ruby
I am new to the ROR and just got stucked into something.... ....that is i have to scan a word document through ruby... Please suggest me how to do...... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 20 November 2011 14:03, garg.ashish86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <garg.ashish86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am new to the ROR and just got stucked into something.... > ....that is i have to scan a word document through ruby... > Please suggest me how to do......googling for ruby parse microsoft word yields some hits that might be of help, but it is not going to be easy. Or have you already rejected those suggestions? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Check out https://github.com/kete/convert_attachment_to. It relies on command line utilities to do the conversions. It has two caveats: * it hasn''t been used with Rails 3 or above and therefore you may need to fork it to make it work * when it was written the utilities didn''t support .doc-x files, you might need to update it to do that Cheers, Walter On Nov 21, 2011, at 3:03 AM, "garg.ashish86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <garg.ashish86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am new to the ROR and just got stucked into something.... > ....that is i have to scan a word document through ruby... > Please suggest me how to do...... > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 20, 2011, at 3:03 PM, garg.ashish86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> ....that is i have to scan a word document through ruby...catdoc? http://www.wagner.pp.ru/~vitus/software/catdoc/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 21, 2011, at 6:34 AM, Petite Abeille <petite.abeille-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On Nov 20, 2011, at 3:03 PM, garg.ashish86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > >> ....that is i have to scan a word document through ruby... > > catdoc? > > http://www.wagner.pp.ru/~vitus/software/catdoc/If you are dropping down to the utility level, docvert is more heavyweight, but handles more cases (including doc-x): https://github.com/holloway/docvert I''ll probably at it to convert_attachement_to at some point as an option. Cheers, Walter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> > > If you are dropping down to the utility level, docvert is more > heavyweight, but handles more cases (including doc-x): > > https://github.com/holloway/docvert > > I''ll probably at it to convert_attachement_to at some point as an option. > > Cheers, > Walter > > That''s for python.... or is there somethiing I''m missing here :/-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 21, 2011, at 2:00 PM, Javier Quarite <jquarites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > If you are dropping down to the utility level, docvert is more heavyweight, but handles more cases (including doc-x): > > https://github.com/holloway/docvert > > I''ll probably at it to convert_attachement_to at some point as an option. > > Cheers, > Walter > > That''s for python.... or is there somethiing I''m missing here :/From my original response: ----- Check out https://github.com/kete/convert_attachment_to. It relies on command line utilities to do the conversions. It has two caveats: * it hasn''t been used with Rails 3 or above and therefore you may need to fork it to make it work * when it was written the utilities didn''t support .doc-x files, you might need to update it to do that ----- Docvert is written in Python, but can be run as a command line utility. Like the other utilities that convert_attachment_to relies upon, convert_attachment_to would make a system call to docvert and grab the result. So definitely not a pure ruby solution, but convert_attachment_to acts as ruby interface to these existing utilities. Hope that clears it up. Cheers, Walter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Is there a way to read a doc/pdf that is uploaded to my rails app? using a gem or something? Javier -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 21 November 2011 11:31, Javier Quarite <jquarites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there a way to read a doc/pdf that is uploaded to my rails app? > using a gem or something?Is that not what this whole thread has been about? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Nov 21, 2011 at 5:01 PM, Javier Quarite <jquarites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there a way to read a doc/pdf that is uploaded to my rails app? > using a gem or something? > > > Yes there is pdf toolkit for ruby.Please check this link http://mishmashmoo.com/blog/?p=4 Regards sathia http://www.sathia27.wordpress.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.