title: Tika can not read text correctly from PDF file
body: <p>I am newbie in apache tika. </p>
  
  <p>I have two PDF file with diffferent font but tika can not read correctly, One have Shruti font which is read correctly using tika but another one file have lmg-rupen font which is not read properly from tika, is there any specific font reading by tika?</p>
  
  <p>below is my code snippest:</p>
  
  <pre><code>BodyContentHandler handler = new BodyContentHandler();
  Metadata metadata = new Metadata(); 
  FileInputStream inputstream = new FileInputStream(file);
  
  ByteArrayOutputStream out = new ByteArrayOutputStream(); 
  IOUtils.copy(inputstream, out); 
  byte[] textBytes = out.toByteArray(); 
  ByteArrayInputStream stream = new ByteArrayInputStream(textBytes);
  ParseContext pcontext = new ParseContext();
  Parser parser = new AutoDetectParser();
  parser.parse(stream, handler, metadata, pcontext);
  
  LanguageDetector lDetector = new OptimaizeLangDetector().loadModels();
  LanguageResult detect = lDetector.detect(handler.toString());
  System.out.println("Language: " +detect); // Got languge 'de' but document languge is 'gu'
  
  System.out.println(handler.toString()); // If font is Shruti content print correctly but font is LMG-RUPE than it gives wrong output
  </code></pre>