![]() / Determines if the file should be shown in the browser or downloaded as a file ![]() pdf filename and the inline setting.Įdit: Here is the source code that I'm using to serve up the PDF files.įirst, the Controller Action: public ActionResult ComplianceCertificate(int id) pdf extension, but we do set the content-disposition header with a valid. The PDF file is being generated on-the-fly, and all the content headers are being set appropriately. The link to the PDF file has target=_blank so that it opens in a new window. This is an ASP.NET MVC application, and has jQuery available. The image was a browser window, with the regular toolbar, but a solid gray background, no UI whatsoever.Īlthough I don't think the following information is related to my issue, I'll include it for reference: I'm really hoping for a solution that is seamless to the end-user, because I can't rely on them to know how to change their Adobe Reader settings, or to automatically install updates.Įdit: screenshot was deleted from file server! Sorry! Has anyone else experienced this issue? What are some possible solutions or workarounds? I've considered providing a "Download PDF" link (that sets the Content-Disposition header to attachment instead of inline), but my company does not like that solution at all, because we really want these PDF files to display in the browser. ![]() So, I am trying to figure out a way to fix this issue for my users. Honestly, until I researched the issue, I blamed the PDF too! Most of my users get very confused at seeing this gray screen, and end up blaming the PDF file and blaming the website for being broken. However, all of these solutions require the user to figure it out. Upgrading to Adobe Reader 10.1.*, or downgrading to 9.*, fixes the issue too. For example, hitting "Refresh" will load the document properly. It works perfectly fine with Firefox, Chrome, or with Adobe Reader 10.1.*. The browser window loads with an empty gray screen (and doesn't even have a Reader toolbar). There is a known issue with opening a PDF in Internet Explorer (v 6, 7, 8, 9) with Adobe Reader X (version 10.0.*).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |