如何从php文件中获取多页pdf输出?

问题描述:

I used the following code but getting the error as "fatal error allowed memory size of bytes exhausted (tried to allocate bytes)".

include 'mpdf60/mpdf.php';
ob_clean(); 
$abc=new mPDF();
$temp=//some html code
$final=$temp;//.
$abc->WriteHTML($final);
$abc->Output();
exit();

My output having bunch of records. its not getting all the records on the pdf. How can I do it?

我使用了以下代码,但是将错误视为“致命错误允许字节的内存大小耗尽(尝试分配字节) )“。 p>

  include'mpdf60 / mpdf.php'; 
ob_clean();  
 $ abc = new mPDF(); 
 $ temp = //某些html代码
 $ final = $ temp; //。
 $ abc-> WriteHTML($ final); 
 $ abc-&gt  ; Output(); 
exit(); 
  code>  pre> 
 
 

我的输出有大量记录。 它没有获得pdf上的所有记录。 我该怎么办? p> div>

The message : fatal error allowed memory size of bytes exhausted

is telling you to increase the memory you can do it directly in your script

ini_set('memory_limit', '-1');