steelThread/mimeograph — pull request #22 by carlost (2012-04-20 21:09:23+00:00)
Title: Monkey patch pdfbeads

i pulled in the entire pdfbeads CLI as "mimeo_pdfbeads.rb". i then pulled the monkey patch into that file. not very proud of this "hack" but it seemed the most logical of all of these options.

however, this is just an temporary solution. i no longer believe that generated a new search PDF based on images created by GS is the correct solution. i think we should extract the images from the pdf and then create a new searchable PDF using those images. that way the searchable pdf appears identical to the original one ... because it uses the exact same images. however, this will require porting the pdfbeads hOCR functionality to a more complete PDF library. maybe prawn (ruby) or pdfkit (coffeescript).

so for right now, this works and the "hack" is isolated.