2

(I know, it's 2019, why is anyone still using IE? Because we still use the Acrobat PDF plugin.)

I have a web application which (among many other things) uses the Acrobat plugin to display a PDF file inside a popup window (to be digitally signed).

We have an issue where the first time someone accesses the PDF-to-be-signed, all that is displayed is the Adobe Grey Screen of Death. If we close the popup and redisplay, the PDF displays.

I've tried the following steps to fix the issues:

  • Checking "Display Large Images" in Acrobat
  • Modifying response headers to the following:

    Cache-Control: no-cache, no-store, must-revalidate, post-check=0, pre-check=0 (removing no-cache does not help)

    Pragma: private

    Expires: 0

I've also tried to activate error logging in Acrobat under Action Wizard, but nothing is generated.

Eventually, someone will rewrite this to work in a modern browser (which can't be done now), but for now, can anyone assist?

Jason
  • 3,943
  • 12
  • 64
  • 104
  • 1
    you can try to refer this link may help to solve your issue. Ref: https://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html It will be better if you use HTML 5 code to display PDF content on web page. – Deepak-MSFT Apr 12 '19 at 03:12
  • I am unable to switch to HTML 5 code. I used a rather ugly workaround to pre-initialize the Acrobat plugin on user login so that by the time the user gets to the part of the application which uses it, the plugin is ready to go. – Jason Apr 15 '19 at 11:25
  • If your work around is able to solve the issue than I suggest you to post your solution as an answer and try to mark your own answer as an accepted answer for this question after 48 hrs, when it is available to mark. It can help other community members in future in similar kind of issues. Thanks for your understanding. – Deepak-MSFT Apr 16 '19 at 02:36
  • Deepak-MSFT: I'm actually kind of embarrassed by the ugliness of the solution and shocked it worked, which is why I didn't post it. – Jason Apr 16 '19 at 09:10

5 Answers5

3

I've found a solution which worked in my case. I disabled the “Run in AppContainer” feature in the Adobe Reader Enhanced Security settings: Disabling "Run in AppContainer"

Dennis
  • 31
  • 1
  • Thanks for answering. Unfortunately, I don't have control over the Enhanced Security settings. Someone in our IT department saw the word "security" and disabled our access to those settings. – Jason May 06 '19 at 21:46
2

I had the same issue for IE11, which was resolved by removing the Cache-Control header completely.

Specifically, I removed:

Cache-Control: must-revalidate, post-check=0, pre-check=0

Adding any one of those options back in with the Cache-Control header caused the issue described.

jamieburchell
  • 761
  • 1
  • 5
  • 18
2

We had the same problem. Solution that works like a charm: Setting header cache-control to no-cache worked fine.

Merc
  • 4,241
  • 8
  • 52
  • 81
Simon
  • 21
  • 1
0

Okay, coming back around to this. My original solution, which I thought worked, did not.

What seems to have been happening was that the code to load the PDF was actually being made twice, in quick succession (coding error). The Acrobat ActiveX plugin was not finished initializing to respond to the first load request, and having a second document thrown at it like that seems to have crashed the plugin, hence the grey screen.

Tracking the second load and removing it resolved the error.

Jason
  • 3,943
  • 12
  • 64
  • 104
0

We were experiecing this problem also. For us, we got the grey screen when the response headers had:

Cache-Control: public, max-age=0, s-maxage=0
Date: ...
Expires: ...
Vary: *

And was solved when we changed the response headers to:

Cache-Control: public, no-store, max-age=0, s-maxage=0
Date: ...
Expires: ...
Vary: *

Note that we are using C# so our actual solution might be a bit different. We used this attribute on our action method:

[OutputCache(Duration = 0, NoStore = true)]
phillhutt
  • 183
  • 1
  • 5