FPDF TCPDF AJAX HTML Javascript jQuery PHP Example MORE

How to add logo in FPDF PHP


logo-add.php

<?php
require('fpdf.php');

class PDF extends FPDF
{
	/* Page header */
	function Header()
	{
		/* Logo */
		$this->Image('logo.png',10,6,30);

	}
}

/* Instanciation of inherited class */
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Times','',12);
$pdf->Output();
?>
        

Run it yourself