9

I want to read and display the contents of the PDF files into my RichtextBox. I am using windows application C#. Is it possible? What is the way to do it?

VoteyDisciple
  • 37,319
  • 5
  • 97
  • 97
user162558
  • 249
  • 3
  • 7
  • 11

4 Answers4

3

You can use Adobe PDF IFilter Library to convert a PDF document to text.

Also see an example on the CodeProject

James
  • 80,725
  • 18
  • 167
  • 237
3

iTextSharp is another alternative PDF library for .NET.

Vinay Sajip
  • 95,872
  • 14
  • 179
  • 191
2

Since PDF is an binary format you'll have to use a pdf-library like pdflib in order to read pdf-files.

pdfLib

KB22
  • 6,899
  • 9
  • 43
  • 52
1

You should checkout PDFSharp library and they have preview component, where else extracting text and showing them in RichTextBox could be little bit of more work, but you can try this.

Akash Kava
  • 39,066
  • 20
  • 121
  • 167