README.rdoc in rtesseract-2.0.1 vs README.rdoc in rtesseract-2.1.0

- old
+ new

@@ -14,19 +14,33 @@ * ImageMagick - Program * RMagick or mini_magick - Gem Atention: Version 1.0.0 works fine with Ruby 2.0 and tesseract 3.0 and lower versions of rtesseract works fine with Ruby 1.8 and tesseract 2.0.4. +PDF support requires a newer version of tesseract, specifically V.3.03 or above. + == EXAMPLE USAGE It's very simple to use rtesseract: === CONVERT IMAGE TO STRING image = RTesseract.new("my_image.jpg") - image.to_s #Getting the value + image.to_s # Getting the value +=== CONVERT IMAGE TO SEARCHABLE PDF + + image = RTesseract.new("my_image.jpg") + image.to_pdf # Getting the pdf path + image.to_s # Still can get the value only. + # ... + # some stuff + # ... + image.clean # to delete file once finished + +This will preserve the image colors, pictures and structure in the generated pdf. + === CHANGE THE IMAGE image = RTesseract.new("my_image.jpg") image.source = "new_image.png" image.to_s @@ -87,9 +101,10 @@ * ita - Italian * nld - Dutch * por - Portuguese * spa - Spanish * vie - Vietnamese + * or any other supported by tesseract. Note: Make sure you have installed the language to tesseract Other Options RTesseract.new("test.jpg", options: :digits) # Only digit recognition