title: How to read a PDF file line by line in c#?
body: <p>In my windows 8 application, I would like to read a PDF line by line then I would like to assign a String array. How can I do it?</p>
  
  <pre><code>    public StringBuilder addd= new StringBuilder();
      string[] array;
  
      private async void btndosyasec_Click(object sender, RoutedEventArgs e)
      {
          FileOpenPicker openPicker = new FileOpenPicker();
          openPicker.ViewMode = PickerViewMode.List;
          openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
          openPicker.FileTypeFilter.Add(".pdf");
  
          StorageFile file = await openPicker.PickSingleFileAsync();
  
  
  
          if (file != null)
          {
  
              PdfReader reader = new PdfReader((await file.OpenReadAsync()).AsStream());
  
              for (int page = 1; page &lt;= reader.NumberOfPages; page++)
              {
  
                  addd.Append(PdfTextExtractor.GetTextFromPage(reader, page));
                  string tmp= PdfTextExtractor.GetTextFromPage(reader, page);
  
                  array[page] = tmp.ToString();
  
                  reader.Close();
              }
          }
      }
  </code></pre>