php - Is there any way to include HighCharts graph into DomPdf -


i using dompdf generate pdf in php, need include graphs generated pdf. using highcharts generating charts. there way.

code:

  • $dompdf = new dompdf(); $html1 = ' abc
    • {padding: 0; margin: 0; font-family: arial, helvetica, sans-serif; color: #000; box-sizing: border-box;} .page {width: 750px; margin: 0 auto; position: relative;} .name, .date, .pera {position: absolute; z-index: 1;} .name, .date {left: 288px; font-size: 24px;} .name {bottom: 380px;} .date {bottom: 330px;} .pera {top: 185px; left: 0; width: 100%; padding: 0 90px 0 40px; font-size: 21px;} .pera strong {font-style: italic;} '; $html1 .= 'gaurav saxena'; $html1 .= ''.$daten.''; $html1 .=' '; $dompdf->loadhtml($html1); /* render html pdf */ $dompdf->render(); $pdf1 = $dompdf->output(); $pdf_name1 = "chart-report"; $file_location1 = $_server['document_root']."/assessments/secure/admin/pdfreports/".$pdf_name1.".pdf"; file_put_contents($file_location1,$pdf1);


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -