【发布时间】:2010-11-22 12:19:45
【问题描述】:
我有一个问题,我该如何做这样的事情:
header("Content-Disposition: inline; filename=result.pdf");
header("Content-type: application/x-pdf");
使用 Zend Framework,我已经尝试过:
$this->getResponse()
->setHeader('Content-Disposition:inline', ' filename=result.pdf')
->setHeader('Content-type', 'application/x-pdf');
但不能正常工作。
【问题讨论】:
-
PDF 的正确 Mime-Type 是 application/pdf。
标签: php zend-framework