You are here:   Blogs
Register   |  Login

 

Minimize

How to Extract Text from PDF documents with PdfTextReader

Dec 2

Written by:
12/2/2010 8:08 PM  RssIcon

Nasosoft.Documents.Pdf offers the capability to extract text content from PDF documents. You can use PdfTextReader to read text content easily. For example:

[C#]

            using (PdfTextReader r = new PdfTextReader(FileName))

            {

                System.Console.WriteLine(r.ReadToEnd());

            }

[VB]

            Dim reader As PdfTextReader

            reader = New PdfTextReader(FileName)

            System.Console.WriteLine(reader.ReadToEnd())

Tags:
Categories: