title: Reading a PDF File From a SharePoint Library Using iTextSharp
body: <p>I need to read a PDF that is located in a SharePoint 2013 library.</p>
  
  <p>I am able to read a PDF from a local folder, but not from the library.</p>
  
  <p>Specifically, I need to search the text in the PDF for some keywords and then move the file from the current library to another SharePoint library based on a condition.</p>
  
  <p>I also found that I am getting an error from the code below:</p>
  
  <pre><code>PdfReader pdfReader = new PdfReader("http://mysharepointsite.com/MyDocumentLibrary/MyFile.pdf");
  </code></pre>
  
  <p>The error is "The remote server returned an error: (401) Unauthorized."</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks!</p>