我的工作codeignitor和做功產生的報告。但我的問題是,每次我下載PDF文件來查看任何正在考慮太多時間的事情。如何在使用mpdf時查看pdf?
這裏是MPDF手動http://www.mpdfonline.com/repos/mpdfmanual.pdf
的鏈接這裏是我的代碼,我工作。如果有人知道的東西plz幫助:
控制器: Report.php
public function index(){
$html =$this->load->view('report/index', $this->data, true);
$htmls=$html;
$this->load->library('Mpdf_land');
$pdfFilePath = 'Public_Opportunities_Detail('.date('Y-m-d H:i:s').').pdf';
$this->mpdf_land->pdf->WriteHTML($htmls);
$this->mpdf_land->pdf->Output(UPLOAD_REPORT_PATH.$pdfFilePath.'', "D");
}
查看文件:index.php文件
<html>
<body>
<p>hello </p>
</body>
</html>
沒有人?????????? – user3162878