function _beginpage($orientation, $format)
 {
     parent::_beginpage($orientation, $format);
     if ($this->NewPageGroup) {
         // start a new group
         $n = sizeof($this->PageGroups) + 1;
         $alias = "{nb{$n}}";
         $this->PageGroups[$alias] = 1;
         $this->CurrPageGroup = $alias;
         $this->NewPageGroup = false;
     } elseif ($this->CurrPageGroup) {
         $this->PageGroups[$this->CurrPageGroup]++;
     }
 }