Jump to content

Tiffy

New Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Tiffy

  1. somthing like that..... function Footer() { if($this->PageNo() < '{nb}') { $this->SetY(-20); $this->SetFont('Arial','',; $this->Cell(0,3,"content for the first pages",0,1,'C');//never displayed as '{nb}' is not defined yet I guess } else { $this->SetY(-20); $this->SetFont('Arial','',; $this->Cell(0,3,"content for the last page",0,1,'C');//always displayed } $this->SetFont('Arial','',; $this->SetTextColor(0,0,0); $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,1,'C'); }
  2. yes i have got the logic sorted out. But not sure how to get the value of total page count.
  3. Hi, i need to output the footer only in the last page of my pdf. Is there any way that i can count the total number of pages and then compare the current page value with the last page value? If the current page value is equal to the last page value, then the footer will display. Help needed here! Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.