title: itextsharp PdfTextExtractor Spelling Words Wrong
body: <p>There's a PDF in our database in binary. I streamed it out and saved it as a PDF file and tested with both sources and ended up with the same result: the PdfTextExtractor spells some words wrong.</p>
  
  <p>For example, there is a word, "confirmed" in the PDF. After PdfTextExtractor converts it, it's spelled as "confrmed." </p>
  
  <p>I step through the process in debug and it's spelled wrong immediately after it's converted by PdfTextExtractor, so I'm sure it's not inaccurate because of something I'm doing on my end.</p>
  
  <p>Is there anything I can do to improve PdfTextExtractor's accuracy?</p>
  
  <p>Here is the code I'm currently using:</p>
  
  <pre><code>var reader = new PdfReader(myBinaryPdfData.ToArray());
  var output = new StringWriter();
  
  for (var i = 1; i &lt;= reader.NumberOfPages; i++)
  {
      output.WriteLine(PdfTextExtractor.GetTextFromPage(reader, i, new LocationTextExtractionStrategy()));
  }
  
  output.ToString();
  </code></pre>