How to change pdf header tag from www.phpgrid.org to my own?

QuestionsHow to change pdf header tag from www.phpgrid.org to my own?
c3media asked 3 weeks ago

Hello,

 

When i generate a PDF using TCPDF library show me an header tag http://www.phpgrid.org, how to chage it?

2 Answers
Abu Ghufran Staff answered 3 weeks ago

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.

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
C3media answered 3 weeks ago

Thank you sir,

 

Working

Your Answer

18 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?