centostaptace
New Member
I am new to mPDF. I have html which contains bar chart generated from javaqscript and I want to add facility for user to save this bar chart as pdf file with some other data.For this i am using mPDF but some how value on chart not displying.This is a link of abc.html codeBelow is html out put screen
PDF output
below is php code for mPDF \[code\]<?phpinclude("MPDF54/mpdf.php");$old_limit = ini_set("memory_limit", -1);// create new PDF document$mpdf=new mPDF(); $fp = fopen("abc.html","r");$strContent = fread($fp, filesize("abc.html"));fclose($fp);$mpdf->WriteHTML($strContent);$mpdf->Output('mpdf.pdf','I');exit(0);?>\[/code\]I have also tried dompdf, tcpdf, html2pdf, html2fpf but mpdf gave nearest result so I have made question with mPDF but if this is possible with other plugins then please also guide me about.