Pdf browser request goes into deep freeze

The customer has a pdf newsletter that weighs 1.63 MB, so it’s not huge.

We send an email with a link to pdf. Or users find the link on the main page of the site. It does not matter.

The problem is that when a user requests a PDF file, the browser sometimes goes into deep freeze. Those. you need to use task manager to kill the browser instance.

You can check the pdf here: Newsletter

What is stopping is that he does not always fail. The following is a summary of where I was and what I tried.

browsers

The most likely pdf rejection browser is Google Chrome. However, IE also freezes sometimes.

ERROR

Google Chrome sometimes returns the following error (after a long wait):

"A page processing error has occurred. A file I / O error has occurred. The file has a connection timeout.

IE just freezes without a whimper.

ACROBAT VERSION

The file was originally created in Adobe InDesign CS3, a design studio. We just get the pdf. I tried to save the file using Acrobat 7 if there was some compatibility issue. This seemed to fix the problem on one machine, but not on the other ...

GOOGLE RESULTS

Googling shows that there are some issues with Chrome and PDF. I have not found a solution yet. This still does not explain why IE sometimes does not work.

OTHER MEASURES

I clear the cache for each browser between tests. So it could just be a garbled load.

OPENING A FILE WITH ACROBAT PRO

There is no problem opening the file this way.

WEB SERVER

- . , .

HELP!

, , . , .


EDIT:

:

pestaa (. ), , . ( , - ), . .., http-:

Content-Disposition: attachment

, :

protected void downloadButton_Click(object sender, EventArgs e)
    {
        string fileName = "newsletter49.pdf";

        string filePath = Server.MapPath("~/images/ipdf/mailings/" + fileName);
        Response.Clear();

        Response.AppendHeader("content-disposition", "attachment; filename=" +       fileName);
        Response.ContentType = "application/octet-stream";
        Response.WriteFile(filePath);
        Response.Flush();
        Response.End();
    }

html ( Acrobat Reader W3C):

<h2>
        Our Autumn/Winter 2010 Newsletter is now available</h2>
    <p>
        Please click on the button below:</p>
    <asp:Button ID="downloadButton" runat="server" OnClick="downloadButton_Click" Text="Download Newsletter" />
    <div style="margin-top: 10px; border: 1px solid #ccc; background: #ebebeb; padding: 6px;">
        <p>
            If you do not have Adobe Acrobat Reader, you will not be able to read the Newsletter.
            To get Acrobat Reader, click the button below and download it from Adobe website:</p>
        <a title="This link opens in a new window to allow you to download Adobe Reader!"
            href="http://get.adobe.com/uk/reader" target="_blank">
            <img alt="Get Adobe Reader for viewing PDF files" src="../Images/SharedImages/get_adobe_reader.gif"
                style="border: none;" /></a>
    </div>

, , - , pdf. pestaa .


2:

pestaa . , , , , , pdf . , .

- , , .

+5
2

, , PDF , HTTP-, :

Content-Disposition: attachment

/ , , IE.

+6

Mozilla Fire Fox, Safari IE 9. , Adobe Reader, Edit, Preferences, . Norton Anti Virus. , -.

0

All Articles