1

I'm using C# 2005 as a programming platform. I want to have a program reading pdf file and output the content in picturebox properties. Can anyone help me on how could i do this?

Bryan
  • 1,245
  • 5
  • 22
  • 37

2 Answers2

2

You can't render PDF in a PictureBox. Picture boxes are for displaying pictures. So if you want to render a PDF file inside a picture box you will have to first convert it to, well, a picture. There are some commercial products such as ABC PDF that would allow you to do this conversion.

Another possibility is to use the Adobe Reader ActiveX control which you could host in your WinForms application and directly show the PDF file as is.

Community
  • 1
  • 1
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
1

There are some opensource libraries out there. Choose one of the below:

sharpPDF: http://sharppdf.sourceforge.net/

PDFjet: http://pdfjet.com/os/edition.html

PDF Clown: http://sourceforge.net/projects/clown/

You can get the content of the PDF file using on of these libraries. About showing it on your form etc., I'd suggest examining the samples of these libraries.

Emir Akaydın
  • 5,708
  • 1
  • 29
  • 57