Enable/disable footer
Status: Abandoned
Brought to you by:
renatoac
I added Footer enable/disable feature:
Declare this variable.
var $enablefooter=true; //! bool
...
Then modify Footer method and add SetFooterActive.
//Page footer
function Footer()
{
if ($this->enablefooter) {
//! @return void
//! @desc The footer is printed in every page!
//Position at 1.0 cm from bottom
$this->SetY(-10);
//Copyright //especial para esta versão
$this->SetFont('Arial','B',9);
$this->SetTextColor(0);
//Arial italic 9
$this->SetFont('Arial','I',9);
//Page number
$this->Cell(0,10,$this->PageNo().'/{nb}',0,0,'C');
//Return Font to normal
$this->SetFont('Arial','',11);
}
}
// Enable or disable footer printing
function SetFooterActive($enable) {
$this->enablefooter=$enable;
}
modified html2fpdf.php