Show PDF file using HTML in MVC

  By Usman Jafar   Posted on June-29-2018   537

ASP.NET

How to show PDF file using HTML  in MVC 

  • Simple create an action in controller and paste the following code in view.
  •         <embed src="~/EMS_User_Manual.pdf" type="application/pdf" width="1000" height="1000" style="text-align:center;">
  • Now file will be open in browser and show PDF content.

How to show PDF file using HTML  in MVC 

  • Simple create an action in controller and paste the following code in view.
  •         <embed src="~/EMS_User_Manual.pdf" type="application/pdf" width="1000" height="1000" style="text-align:center;">
  • Now file will be open in browser and show PDF content.

By  usmanjafar15-000001    29-Jun-2018 Views  537



You may also read following recent Post