1

Possible Duplicate:
How to render pdfs using C#

How to view PDF files using c#.net? I only have to view the PDF file, do not have to create or modify.

Community
  • 1
  • 1
shahbaz
  • 111
  • 1
  • 12
  • 1
    Can you assume that the user running your program will have Acrobat Reader installed? Can you request that they do? Or is it a situation where you have no information at all? – Konrad Viltersten Nov 04 '12 at 12:10
  • http://stackoverflow.com/questions/518878/how-to-render-pdfs-using-c-sharp – kenny Nov 04 '12 at 12:17
  • No, actualy i want that my application do not depend upon Acrobat reader installed, – shahbaz Nov 04 '12 at 12:24

3 Answers3

1

you can try this. View PDF files in C#

It's C# and uses/wraps an open source C/C++ PDF library. code and compiled binary can be downloaded from Google. here!

HaroonAbbasi
  • 126
  • 10
  • Additional information: that particular library wraps either Xpdf or MuPDF. Both are excellent, both are GPL. Meaning your entire project needs to be Open Sourced as well. Something to be aware of. – Paul-Jan Nov 04 '12 at 18:53
0

A quick and easy way for this would be to use a WebBrowser control (need the client has Adobe Reader installed) and navigate it to the PDF file you want to display.

Just use: webBrowser.Navigate("file:///" + url); and you'll be able to display a PDF file.

Picrofo Software
  • 5,475
  • 3
  • 23
  • 37
bystander
  • 551
  • 3
  • 14
  • 2
    Great idea but what if the user does not have `Adobe Reader` installed? The user'll be then forced to install it on his browser so that he'll be able to use the application. Not very recommended yet a good idea. Have a great day :) – Picrofo Software Nov 04 '12 at 12:41
0

may be it will helps you. See User Control Without Acrobat Reader

immayankmodi
  • 8,210
  • 9
  • 38
  • 55