When generating a PDF in the browser programmatically (via PHP) the rendered PDF displays fine in both Firefox and Safari, but Chrome returns an ERR_INVALID_RESPONSE. It is
Try this
... ... ...
Make sure that above header code is called before output of PHP script is sent to browser.