Search the Community
Showing results for tags 'tcpdf'.
Found 1 result
-
How do i include the Fusion Chart on a PDF Report Generated by TCPDF
RoncalJustin posted a topic in FusionCharts and PHP
$pdf->AddPage(); $fusionCharts_HTML=' <? require_once(INCLUDE_DIR.'.'fusioncharts.php'.'); $plots = $report->getPlotData(); $ticket_projects = $report->getTicketProjects(); $project_selected = $report->getProjects(); $pieData = $report->getPieChart($ticket_projects); $jsonEncodedData = json_encode($pieData); $columnChart = new FusionCharts("pie3d", "ncmreportsummary" , 900, 450, "chart-1", "json",$jsonEncodedData); $columnChart->render(); ?> <div class="centered"> <div id="chart-1"><!-- Fusion Charts will render here--></div> </div> <?php'; $html2='<div class="centered">'.$fusionCharts_HTML.' </div>'; // output the HTML content $pdf->writeHTML($html2, true, false, true, false, ''); // reset pointer to the last page $pdf->lastPage();