I wanted to see if anyone has done this.
In ruby, i’d like to open a PDF and search for text there. Any text that I find I would like to highlight in yellow, then return the page(s) where I found the text as a jpg. Has anyone done this before?
Thanks,
Craig
If you’re happy to use a c-extension you can achieve this with the ruby-gnome2 bindings. You’ll need the poppler and gdk_pixbuf2 gems.
The API docs for these gems are a little skimpy, but you can find what there is at http://ruby-gnome2.sourceforge.jp/