"mPDFには推奨されないコンストラクタの問題があります"という問題が修正された場合は、mpdfライブラリを共有してください。誰かが "mPDF廃止されたコンストラクタの問題"を修正した場合mpdfライブラリを共有してください
スクリーンショット:
コントローラー:
$data = [];
$html=$this->load->view('welcome_message', $data, true);
//this the the PDF filename that user will get to download
$pdfFilePath = "output_pdf_name.pdf";
//load mPDF library
$this->load->library('m_pdf');
//generate the PDF from the given html
$this->m_pdf->pdf->WriteHTML($html);
//download it.
$this->m_pdf->pdf->Output($pdfFilePath, "I");
あなたの回答はありがとうございます(@Geordy James)。それは正しく動作しています –