Is there a way to use a pdf viewer with jquery mobile and asp.net mvc? I want to grab a pdf file and display it in my mobile site. I think I am suppose to use jquery mobile for my controls but I am not sure how to apply a pdf viewer. My mobile site is created using asp.net mvc and jquery mobile
Am I looking at this correctly?
You can simply return the file using the
Filemethod ofControllerclass. If the client has a PDF reader, everything will be fine.You can return the file from a stream & byte array also. There are so many overloads for these scenarios.
When accessing this action method in a browser,the file-stream result object will be rendered to the browser. You do not need a separate view for this.