2

我用这个 pdf 的东西已经陷入危机超过 2 天了。它在结果操作页面中没有显示任何错误,仍然没有显示在 pdf 文档中。任何人都可以解决这个问题,也许是一个简单的我猜不确定。代码如下。无论如何,提前谢谢大家。

    <?php
      if(isset($_POST['email'])){
       $email = $_POST['email'];
       $fileno = $_POST['fileno'];
       $header = $_POST['header'];
       $day = $_POST['day'];
       $month = $_POST['month'];
       $year = $_POST['year'];
       $stime = $_POST['stime'];
       $venue = $_POST['venue'];
       $meettype = $_POST['meettype'];
       $Itchair = $_POST['Itchair'];
       $mem_pres = $_POST['mem_pres'];
       $invite = $_POST['invite'];

       $head = $_POST['head'];
       $slno = $_POST['slno'];
       $subject = $_POST['subject'];
       $decision = $_POST['decision'];
       $incharge = $_POST['incharge'];
       $date = $_POST['date'];
       $remarks = $_POST['remarks']; 
  }




        include("MPDF54/mpdf.php");

        $mpdf=new mPDF('c','A4','','' , 0 , 0 , 0 , 0 , 0 , 0);

        $mpdf->SetDisplayMode('fullpage');

        $mpdf->list_indent_first_level = 0;  

        $mpdf->WriteHTML(file_get_contents("http://localhost/Bescom/besc_latest.php?email=$email&fileno=$fileno&header=$header&day=$day&month=$month&year=$year&stime=$stime&venue=$venue&meettype=$meettype&Itchair=$Itchair&mem_pres=$mem_pres&invite=$invite&head=$head&slno=$slno&subject=$subject&decision=$decision&date=$date&incharge=$incharge&remarks=$remarks"));

        $mpdf->Output();


     ?>
4

1 回答 1

0

在 mpdf.php 顶部添加以下内容

error_reporting(0); 

这将解决问题。

于 2013-03-29T03:52:14.947 回答