title: How to make searchable pdf with tesseract from C++
body: <p>I'm going to receive images from Qt (QImage) which I then Turn into PDF. But now I need to make them searchable. How can I do this using Tesseract API from code ?</p>
  <p>Basically, I want to do following but from code (I'm using C++ but will happily accept answer for other lang)</p>
  <pre class="lang-sh prettyprint-override"><code>$ tesseract -l eng+mar mydoc.jpg out pdf
  </code></pre>