src/wcmf/lib/pdf/PDF.php
public function CheckPageBreak($h) {
    if($this->GetY()+$h>$this->PageBreakTrigger) {
      $this->AddPage($this->CurOrientation);
      return true;
    }
    return false;
  }
public function CheckPageBreak($h) {
    if($this->GetY()+$h>$this->PageBreakTrigger) {
      $this->AddPage($this->CurOrientation);
      return true;
    }
    return false;
  }
public function CheckPageBreak ( $ h ) { if ( $ this -> GetY ( ) + $ h > $ this -> PageBreakTrigger ) { $ this -> AddPage ( $ this -> CurOrientation ) ; return true ; } return false ; }
If the height h would cause an overflow, add a new page immediately
@param $h The height
@return Boolean whether a new page was inserted or not
If the height h would cause an overflow add a new page immediately