Answers for "How to add logo in FPDF PHP"

PHP
0

How to add logo in FPDF 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();
?>
Posted by: Guest on January-28-2022

Browse Popular Code Answers by Language