I use PHPGraphlib to render graph and TCPDF to generate PDF report. Now i want to render my chart on pdf file.
I have file chart.php
<?php
include("phpgraphlib.php");
$graph = new PHPGraphLib(400,300);
$data = array("Alex"=>99, "Mary"=>98, "Joan"=>70, "Ed"=>90);
$graph->addData($data);
$graph->setTitle("Test Scores");
$graph->setTextColor("blue");
$graph->createGraph();
?>
And the second file is render.html
<html>
<h3>This is where I want to display my graph</h3>
<img src="chart.php" />
</html>
My problem is how render the content of render.html in my pdf file.
Thank you