Avatar of breeze351
breeze351
 asked on

Multi line FPDF footer:

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
PHP

Avatar of undefined
Last Comment
Ray Paseur

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ray Paseur

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
breeze351

ASKER
Thanks, I couldn't find the answer with google.
Ray Paseur

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
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes