problem with logo in PDF

Questionsproblem with logo in PDF
Gustavo Ageitos asked 6 years ago

need export to pdf with logo in headers, can help me please?

6 Answers
Abu Ghufran answered 6 years ago

This is currently not supported, however you can check TCPDF documentation and modify the jqgrid_dist.php file for required changes, where it uses TCPDF.

Abu Ghufran answered 6 years ago

Also, i am adding it in todos for upcoming builds.

Gustavo Ageitos answered 6 years ago

i solved this

search in class.easytable.php, go to end of file, have header function empty, u can put image and text

Abu Ghufran answered 6 years ago

Thanks for sharing.

Mario answered 5 years ago

The Name of the "Page" can be changed to "Seite" or "pagina" here:

// Page footer
public function Footer() {
// Position at 15 mm from bottom
$this->SetY(-15);
// Set font
$this->SetFont('helvetica', '', 9);
// Page number
$this->Cell(0, 10, 'Seite '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
}

Mario answered 5 years ago

The header can easily be set here, just adapt the values, and upload a picture named logo_example.jpg

//Page header
public function Header() {
// Logo – logo starts at position 0.0 good for setting a global header. Value 210 = length
$image_file = K_PATH_IMAGES.'logo_example.jpg';
$this->Image($image_file, 0, 0, 210, '', 'JPG', '', 'T', false, 300, '', false, false, 0, false, false, false);
// Set font
$this->SetFont('helvetica', 'B', 12);
// Title Cell(0, 15, 'optional title',
$this->Cell(0, 15, '', 0, false, 'C', 0, '', 0, false, 'M', 'M');
}

Your Answer

18 + 13 =

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 / 5. Vote count:

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

Let us improve this post!