Hello Abu, the font size in the exported PDF is too big.
How I can change the font size in the exported PDF?
1 Answers
You can change font size and other pdf settings with event handler.
// params are array(<function-name>,<class-object> or <null-if-global-func>)
$e["on_render_pdf"] = array("set_pdf_format", null);
$g->set_events($e);
function set_pdf_format($arr)
{
$pdf = $arr["pdf"];
$data = $arr["data"];
// enable utf8 font
$pdf->SetFont('helvetica', '', 11);
}
Refer demos/export/export-pdf.php
Your Answer