We help IT Professionals succeed at work.

Multi line FPDF footer:

breeze351
breeze351 asked
on
571 Views
Last Modified: 2017-03-31
I need to add a multi line footer.  The application is real estate so you have to have a disclaimer at the bottom of the page (It's a legal CYA.  If we screwed up it ain't our fault).  Since different broker's user different statements, I want to make this as easy as possible.  

I'm getting what looks like the "middle" of the variable.  Is there a way to make the entire variable wrap to a new line without having to edit the text and insert breaks?

global $Disclaimer;
$Disclaimer = $_SESSION['Company_Name']." has made every effort to obtained the information regarding these listings from sources deemed reliable. However, we cannot warrant the complete accuracy thereof subject to errors, omissions, change of price, rental or other conditions, prior sale, lease or financing, or withdrawal without notice."; 
require('fpdf.php');
class PDF extends FPDF
{

// Page footer
function Footer()
{
	$Disclaimer = $GLOBALS['Disclaimer'];
    // Position at 1.5 cm from bottom
    $this->SetY(-15);
    // Arial italic 8
    $this->SetFont('Arial','I',8);
    // Disclaimer
    $this->Cell(0,10,$Disclaimer,0,0,'C');
}
}

Open in new window


Thanks
Comment
Watch Question

Most Valuable Expert 2011
Author of the Year 2014
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Thanks, I couldn't find the answer with google.
Most Valuable Expert 2011
Author of the Year 2014

Commented:
Just so happens that I've been tinkering with FPDF a lot lately, or I would have been googling, too!  Thanks for the points and thanks for using E-E, ~Ray