title: Read columns of PDF in C# using ItextSharp
body: <p>In my progam I extracted text from a PDF file and it works well. ItextSharp extracts text from PDF line by line. However, when a PDF file contains 2 columns, the extracted text is not ok as in each line joins two columns.</p>
  
  <p>My problem is: How can I extract text column by column?</p>
  
  <p>Below is my code. PDF files are Arabic. I'm sorry my English is not so good.</p>
  
  <pre><code>PdfReader reader = new PdfReader(@"D:\test pdf\Blood Journal.pdf");
  int intPageNum = reader.NumberOfPages;
  string[] words;
  string line;
  
  for (int i = 1; i &lt;= intPageNum; i++)
  {
      text = PdfTextExtractor.GetTextFromPage(reader, i, 
                 new LocationTextExtractionStrategy());
  
      words = text.Split('\n');
      for (int j = 0, len = words.Length; j &lt; len; j++)
      {
          line = Encoding.UTF8.GetString(Encoding.UTF8.GetBytes(words[j]));
          // other things here
      }
  
      // other things here
  }
  </code></pre>