#27857

This is most likely happening because there is some stray HTML being output after/before the PDF stream is getting created.

I would recommend to save PDF to the hard drive and to open it with a text editor. Make sure it starts with %PDF-1.4 and ends with %%EOF