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 5 years 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 5 years 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
Grid 4 PHP Framework
 
C3media answered 5 years ago

Thank you sir,

 

Working

Your Answer

9 + 17 =

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?