I had been having a lot of trouble getting the PDF invoice link to download a proper PDF in Web Invoice.

The error states as follows:

Adobe Reader could not open ‘web–invoice-xxxxxx.pdf’ because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn’t correctly decoded).