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

时间:2022-12-28 09:48:52

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?

我的输出有一堆记录。它没有获得pdf上的所有记录。我该怎么做?

1 个解决方案

#1


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');

#1


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');