title: tesseract (v3.03) output as PDF
body: <p>Why is this error returned?</p>
  
  <pre><code>root@amd-3700-2gb ~/ocr_test # tesseract -l dan pdf.png out pdf
  Tesseract Open Source OCR Engine v3.03 with Leptonica
  Error opening data file /usr/local/share/tessdata/osd.traineddata
  Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
  Failed loading language 'osd'
  Tesseract couldn't load any languages!
  Warning: Auto orientation and script detection requested, but osd language failed to load
  </code></pre>
  
  <h1>Language list</h1>
  
  <pre><code>root@amd-3700-2gb ~/ocr_test # tesseract --list-langs
  List of available languages (3):
  eng
  dan
  dan-frak
  </code></pre>
  
  <h1>Output as txt</h1>
  
  <p>This works fine and output text to <code>out.txt</code></p>
  
  <pre><code>tesseract -l dan pdf.png out
  </code></pre>
  
  <h1>Output PDF</h1>
  
  <p>This creates <code>out.pdf</code> but also retuns the error mentioned and the searchable text in the PDF doesn't make sense</p>
  
  <pre><code>tesseract -l dan pdf.png out pdf
  </code></pre>