Adobe Reader cannot open .pdf file created using mPDF in Zend Framework
问题 I'm trying to generate a .pdf file using mPDF in a Zend Framework application, from the output of the action. Here is the code of my action: public function testAction() { $this->_helper->viewRenderer->setNoRender(); $this->_helper->layout->disableLayout(); $this->view->foo = 'bar'; $this->render(); $output = $this->getResponse()->getBody(); $layout = new Zend_Layout(); $layout->content = $output; $layout->setLayoutPath(dirname(dirname(__FILE__)) . '/views/layouts/'); $layout->setViewSuffix(