PDF file is damaged

Discussion in 'Software' started by phillipbauer, Jul 9, 2015.

  1. phillipbauer

    phillipbauer Private E-2

    Hello,

    When PDF files are downloaded, the user receives the following error:

    "There was an error opening this document. The file is damaged and could not be repaired".

    This error occurs with older versions of Adobe Acrobat Reader (tested and failed on 6.0, 7.0). The code I am using is pasted below and is a collaboration of research I've done on EE and google.

    Note: The file that is streamed to the user has a higher file size than the actual file. You can see below I have tried using different headers, pdf and octet-stream.

    We must maintain the ability of allowing the client to download the pdf file rather than it opening in the browser.

    Any help is appreciated.

    Thanks.
     
  2. Eldon

    Eldon Major Geek Extraordinaire

    1. You haven't pasted any code.
    2. The latest Adobe Reader is 11.0.10.
    3. There are other better PDF readers.
    3. How is the client downloading the PDF file?
     
  3. pwillener

    pwillener MajorGeek

    The latest Adobe Reader XI version is 11.0.11.

    The latest Adobe/Acrobat Reader version is DC.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds