I have a service generating PDF's on the fly and returning it with the correct Content-Type and Content-disposition, but the viewer won't show it. If I save the PDF as a file, the viewer works as expected.
This doesn't work:
http://mypage.com/viewer.js/#http://mypage.com/service/createpdf
This works:
http://mypage.com/viewer.js/#http://mypage.com/file.pdf