Hello,
When i generate a PDF using TCPDF library show me an header tag http://www.phpgrid.org, how to chage it?
2 Answers
Hello,
In export_pdf callback function, you can set these TCPDF parameters. e.g.
$e[“on_render_pdf”] = array(“set_pdf_format”, null);
$g->set_events($e);
function set_pdf_format($arr)
{
$pdf = $arr[“pdf”];
$data = $arr[“data”];
// set document information
$pdf->SetCreator(“Abu Ghufran”);
$pdf->SetAuthor(‘Abu Ghufran’);
$pdf->SetTitle(‘Grid 4 PHP’);
$pdf->SetKeywords(‘gridphp’);
}
where $g is jqgrid object.
Your Answer