$Today = date("j F, Y"); require_once 'tcpdf_include.php'; class myPDF extends TCPDF { public function Footer() { $this->SetY(-15); $this->SetColor('text', 23, 54, 93, false, ''); $this->Cell(180, 0, '5-108 SEIEE BUILDINGS, SHANGHAI JIAO TONG UNIVERSITY,', 0, 1, 'C', false, '', 0); $this->Cell(180, 0, '800 DONGCHUAN ROAD, MINHANG, SHANGHAI 200240, CHINA', 0, 1, 'C', false, '', 0); $this->Cell(180, 0, 'Phone: +86 2134208259 Email: info@acp-conf.org www.acp-conf.org', 0, 1, 'C', false, '', 0); } } // create new PDF document $pdf = new myPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); $fontname = $pdf->addTTFfont('font/arial.ttf', 'TrueTypeUnicode', '', 32); // set document information $pdf->SetCreator('2014 ACP Committee'); $pdf->SetAuthor('2014 ACP Committee'); $pdf->SetTitle('Invitation Letter'); $pdf->SetSubject(''); $pdf->SetKeywords(''); // set default header data $pdf->SetHeaderData('header.jpg', PDF_HEADER_LOGO_WIDTH, '' . '', '', array(255, 255, 255), array(255, 255, 255)); $pdf->setFooterData(array(23, 54, 93), array(255, 255, 255)); // set header and footer fonts $pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); $pdf->setFooterFont(array($fontname, '', PDF_FONT_SIZE_DATA)); // set default monospaced font $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); // set margins