I see this when clicking a link to a PDF stored on Amazon S3 in Chrome:
If I download the same URL using wget or follow the same link in Firefox the PDF displays normally.
It looks like Chrome is not interpreting the file as a PDF. Is the problem with the PDF file or with Chrome? The PDF file was generated by wkhtmltopdf 0.12.3 (with patched qt) on Arch Linux.
Edit: it seems like a problem with the PDF because when I use
I figured it out. I was using PDFKit to generate PDFs with the verbose option on. The verbose option somehow put all of
stdout inside the PDF itself which caused Chrome to not detect the file as a PDF.