Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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();
?>
Source by www.studentstutorial.com #
 
PREVIOUS NEXT
Tagged: #How #add #logo #FPDF #PHP
ADD COMMENT
Topic
Name
5+3 =