I would like to view a PDF file directly in my browser. I hvae the controller wriiten so far
public ActionResult GetPdf(string fileName)
{
string filePath = "~/Content/Images/Vintagemenu/" + fileName;
Response.AddHeader("Content-Disposition", "inline; filename=" + fileName);
return File(filePath, "application/pdf");
}
I need help with the view.

Ramesh PalanivelRank #372 · 6.8K reputationPosted Mar 15, 2017, 3:38 AM EDT
Guest User61 reputationPosted Mar 15, 2017, 4:12 AM EDT
Uehara AyakaRank #2,730 · 512 reputationPosted Mar 15, 2017, 5:48 PM EDT
Maen BadwanRank #2,520 · 556 reputationPosted Mar 23, 2017, 7:38 AM EDT
(1) Adobe Reader ActiveX Control (Adobe Acrobat Browser Control Type Library 1.0):
This approach requires the client to install and register Adobe Reader ActiveX control on his machine to allow viewing PDF documents in the Adobe ActiveX viewer.
But this option might be not acceptable by many users, since it requires installing ActiveX components on client side.
This is high-level control that supports loading, viewing and parsing document formats (including PDF) in different web-browsers WITHOUT installing any components at client side.
You can find more details here:
https://www.leadtools.com/help/leadtools/v19m/dh/javascript/to/leadtools.topics.documents.ui~doxui.topics.documentviewer_using.html
Also, you can check an online demo here:
https://demo.leadtools.com/JavaScript/DocumentViewer/