#Hi Sallie will print left and the current page number will print right. $this->MultiRow("Hi Sallie", $this->PageNo()); /*I, SJH couldn't pass a variable (global or not) to the function in the MYPDF class, so I added a global declaration to my Footer function in the MYPDF class and it worked as it did for this person. But if I declare the variable as global outside of the class function, it doesn't work. So I have actually declared it twice and it works???? Not sure why I can declare it outside the MYPDF class and again as a global variable within the class and it still has the correct value. /*I found this on https://www.experts-exchange.com/questions/28177574/TCPDF-Passing-a-DB-generated-string-into-public-function-Footer.html*/ //OK, it was a variable scope problem. Once I declared $delivery_to_camper_string with the global keyword, it worked right away. // load footer string $delivery_to_camper_string = $selectSessionResult['t_program_name_en'] .', ' .$immersion_or_challenge_label .' ' .$selectSessionResult['t_session_name_en'] .' ' .$selectMessageResult['t_firstname_en'] .' ' .$selectMessageResult['t_lastname_en']; class MyPDF extends TCPDF { public function Header() { $this->Image("images/page_background.jpg", 'C', 12, '', '', 'JPG', false, 'C', false, 300, 'C', false, false, 0, false, false, false); } public function Footer() { // declare global variable to expand scope outside of this function global $delivery_to_camper_string; // Position at 25 mm from bottom $this->SetY(-25); $this->SetTextColor(160, 160, 160); $this->Cell(80, 20, $delivery_to_camper_string, 0, 0, 'L', false, '', 0, false, '', ''); } }