Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display a pdf file in asp.net web-form

Tags:

c#

asp.net

pdf

I'm looking for a free way or .Net component to display PDF files in the browser and allow for printing of the files also. What methods/components/libraries can do this, and what guidance do you have on the problem in general.

like image 262
MAW74656 Avatar asked Jan 21 '23 10:01

MAW74656


2 Answers

I think you might look into this :

how to convert PDF into HTML using C#

The code will help you load the PDF as html in your document.

like image 101
abhishek Avatar answered Jan 30 '23 15:01

abhishek


http://www.beansoftware.com/ASP.NET-Tutorials/PDF-View-Custom-Control.aspx

Did what I was looking for. A control that can display a pdf in the browser on a web form, with other elements on the page, and whose pdf file source can be changed by server-side code.

like image 33
MAW74656 Avatar answered Jan 30 '23 14:01

MAW74656