Bom dia,
Estou usando o tcpdf e tô tendo dificuldade em configurar a imagem do header. A imagem está numa pasta chamada "images" mas eu não tô conseguindo setar ela nessa função. Alguém sabe como fazer isso?
// Extend the TCPDF class to create custom Header and Footer
class MYPDF extends TCPDF {
//Page header
public function Header() {
// Logo
$image_file = K_PATH_IMAGES.'logo_example.jpg';
$this->Image($image_file, 10, 10, 15, '', 'JPG', '', 'T', false, 300, '', false, false, 0, false, false, false);
}
O erro é o seguinte:
PHP Warning: Division by zero