Rubuquetp is a project mainly written in Ruby, it's free.
a console-based application which allows you to recognize PDF or DJVu files and then convert them to TXT file format