Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I ran into this same problem, and could only get it to work by asking the user to modify their security settings to turn off <i>Do not save encrypted pages to disk</i> in the Advanced tab of the Internet Options dialog: <a href="http://support.microsoft.com/kb/812935" rel="nofollow noreferrer">http://support.microsoft.com/kb/812935</a></p> <p><b>...then</b> with the immediate panic over, I started looking at the code (ASP.NET using VB). I used fiddler and found that even when I wasn't specifying the cache-control header it seemed that the Framework was automatically specifying no-store for me. The key to solving the issue was actually in <a href="https://stackoverflow.com/questions/773308/ie-https-generating-pdf-from-php-file-doesnt-work">this PHP question</a>. By setting the cache-control header to <i>max-age=1</i> the file would be cached for 1 second, just long enough for Adobe Reader to pick it up from the disk and load it into memory. I updated our code to generate the PDF as follows:</p> <pre><code>Response.ClearContent() Response.ClearHeaders() Response.AddHeader("cache-control", "max-age=1") Response.ContentType = "application/pdf" Response.AddHeader("content-disposition", "attachment; filename=whatever.pdf") Response.AddHeader("content-length", mem_stream.Length.ToString) Response.BinaryWrite(mem_stream.ToArray()) Response.Flush() Response.End() </code></pre> <p><b>Update:</b> I thought it was working, but I guess I spoke too soon. I created a <a href="https://stackoverflow.com/questions/1202285/generating-pdf-error-with-ie-and-https">new question</a> to follow through with this issue.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload