I have a question, how can I do something like this:
header(\"Content-Disposition: inline; filename=result.pdf\"); header(\"Content-type: application/x-pdf\
Solved
$this->getResponse() ->setHeader('Content-Disposition:inline', ';filename=result.pdf') ->setHeader('Content-Type', 'application/x-pdf');