Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free PDF viewers in ASP.net

Tags:

asp.net

I have many PDF documents in binary format which is in the SQL Server 2008 database. I have a gridview in my ASP.net page. When a user clicks on any ID column of the record I need to open the pdf in the browser.

Are there any free PDF viewer controls out there? How can I convert the binary PDF file and display as PDF in the browser.

Thanks

like image 776
rowmark Avatar asked Mar 13 '10 17:03

rowmark


People also ask

Can I show PDF in iframe?

Since the path accepts an embed parameter, you can embed the PDF viewer in your document with iframes. Your embedded file now displays in your IT Glue document with Google Drive viewing tools.


1 Answers

Just return the data to the client with a Content-Type of application/pdf. The client will open it in Adobe Reader or whatever PDF viewer is installed.

like image 114
David Brown Avatar answered Sep 28 '22 21:09

David Brown