Php 有人知道如何将jpgraph包含到DOMPF中吗?

Php 有人知道如何将jpgraph包含到DOMPF中吗?,php,dompdf,jpgraph,Php,Dompdf,Jpgraph,有人知道如何将jpgraph包含到DOMPF中吗 这是我的DOMPDF代码: //generamos el PDF require_once("../dompdf/dompdf_config.inc.php"); if ( get_magic_quotes_gpc() ) { $html = stripslashes($html); $old_limit = ini_set("memory_limit", "64M"); $dompdf =

有人知道如何将jpgraph包含到DOMPF中吗

这是我的DOMPDF代码:

//generamos el PDF
require_once("../dompdf/dompdf_config.inc.php");
    if ( get_magic_quotes_gpc() ) {
        $html = stripslashes($html);
        $old_limit = ini_set("memory_limit", "64M");
        $dompdf = new DOMPDF();
        $dompdf->load_html($html);
        $dompdf->set_paper('letter', 'portrait'); //landscape , portrait
        $dompdf->render();
        $dompdf->stream("TPE - Reporte F.E.A. $asignaturashort.pdf");       
        exit(0);
        }
    }
DOMPDF运行得很好,但在使用jpgraph库创建PDF之前,我需要添加一个图形。 有人知道怎么做吗?
谢谢

您需要以与在常规HTML文档中完全相同的方式执行此操作。
类似于。

这是迄今为止我在这里发表的第一篇帖子。。。无论如何,您首先需要生成图形并将其保存在web服务器中的任何首选目录中,然后从dompdf中引用图像

这会在my/tmp目录中将图像保存为png格式 $myGraph->Stroke(“/tmp/myimage.png”) 看

然后,我在dompdf上使用下面的代码引用该图像

$html.="<img width='500px' height='300px' src='/tmp/myimage.png' /><br />";
希望有帮助