function next_page($height)
 {
     $this->pdf->AddPage(mm2pt($this->media->width()), mm2pt($this->media->height()));
     // Calculate coordinate of the next page bottom edge
     $this->offset -= $height - $this->offset_delta;
     // Reset the "correction" offset to it normal value
     // Note: "correction" offset is an offset value required to avoid page breaking
     // in the middle of text boxes
     $this->offset_delta = 0;
     $this->pdf->Translate(0, -$this->offset);
     parent::next_page($height);
 }
 function next_page($height)
 {
     $this->_show_watermark();
     $this->current_page++;
     pdf_end_page($this->pdf);
     pdf_begin_page($this->pdf, mm2pt($this->media->width()), mm2pt($this->media->height()));
     // Calculate coordinate of the next page bottom edge
     $this->offset -= $height - $this->offset_delta;
     // Reset the "correction" offset to it normal value
     // Note: "correction" offset is an offset value required to avoid page breaking
     // in the middle of text boxes
     $this->offset_delta = 0;
     pdf_translate($this->pdf, 0, -$this->offset);
     parent::next_page($height);
 }
 function next_page($height)
 {
     if ($this->_status == PDFLIB_STATUS_PAGE_STARTED) {
         pdf_end_page($this->pdf);
     }
     pdf_begin_page($this->pdf, mm2pt($this->media->width()), mm2pt($this->media->height()));
     // Calculate coordinate of the next page bottom edge
     $this->offset -= $height - $this->offset_delta;
     // Reset the "correction" offset to it normal value
     // Note: "correction" offset is an offset value required to avoid page breaking
     // in the middle of text boxes
     $this->offset_delta = 0;
     pdf_translate($this->pdf, 0, -$this->offset);
     parent::next_page($height);
     $this->_status = PDFLIB_STATUS_PAGE_STARTED;
 }
 function next_page($height)
 {
     $this->_show_watermark();
     $this->current_page++;
     $this->pdf->AddPage();
     // Calculate coordinate of the next page bottom edge
     $this->offset -= $height - $this->offset_delta;
     // Reset the "correction" offset to it normal value
     // Note: "correction" offset is an offset value required to avoid page breaking
     // in the middle of text boxes
     $this->offset_delta = 0;
     $this->pdf->Translate(0, -$this->offset);
     parent::next_page($height);
 }