PDF Generation Results in ERR_INVALID_RESPONSE in Chrome

前端 未结 3 1084
囚心锁ツ
囚心锁ツ 2020-12-10 13:24

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

3条回答
  •  醉梦人生
    2020-12-10 14:00

    Try this

    
    
    
    
    ...
    ...
    ...
    

    Make sure that above header code is called before output of PHP script is sent to browser.

提交回复
热议问题