Parsing PDF Files using iTextSharp (C#, .NET)

How to Convert PDF to Text in .NET (C#)
How to extract plain text from PDF file using PDFBox.NET library. Sample Visual Studio project download (C#).
Parsing PDF Files using IFilter (C#, .NET)
How to extract text from PDF files using Microsoft IFilter interface and Adobe PDF IFilter implementation. 
How to Convert PDF to Text in .NET (VB)
How to extract plain text from PDF file using PDFBox.NET library. Sample Visual Studio project download (VB).
PDFBox in .NET
PDFBox.NET is a .NET port of PDFBBox created using IKVM.NET. The latest version (1.8.9) is available for download.
How to extract text from PDF files using iTextSharp library. Sample Visual Studio 2010 project included (C#).
Downloads

License

Note that iTextSharp is licensed under AGPL which restricts the commercial use.

Sample code (C#)

using iTextSharp.text.pdf;
using iTextSharp.text.pdf.parser;

// ...
 
public static string ExtractTextFromPdf(string path)
{
  using (PdfReader reader = new PdfReader(path))
  {
    StringBuilder text = new StringBuilder();

    for (int i = 1; i <= reader.NumberOfPages; i++)
    {
        text.Append(PdfTextExtractor.GetTextFromPage(reader, i));
    }

    return text.ToString();
  }
} 

Other Options

It is also possible to use other libraries with more flexible licensing for PDF parsing, such as PDFBox.NET. Download a sample C# project that uses PDFBox to parse PDF files.