I have a question, how can I do something like this:
header(\"Content-Disposition: inline; filename=result.pdf\");
header(\"Content-type: application/x-pdf\
I had a header set. It was not set, but ADDED. So I had a Content-Type of text/html and also application/pdf.
Flagging the Content-Type with TRUE made the download possible in IOS and other devices which showed only cryptic symbols after the download or an error:
->setHeader('Content-type', 'application/x-pdf', true);
setHeader($name, $value, $replace = false)
from: https://framework.zend.com/manual/1.12/de/zend.controller.response.html