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.
Maen BadwanPosted Mar 23, 2017, 11:38 AM
(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/
Uehara AyakaPosted Mar 15, 2017, 9:48 PM
Guest UserPosted Mar 15, 2017, 8:12 AM
Ramesh PalanivelPosted Mar 15, 2017, 7:38 AM