public function render()
 {
     parent::render();
     if ($this->dataValue) {
         $x1 = $this->area->x;
         $y1 = $this->area->y;
         $x2 = $this->area->x + $this->area->w;
         $y2 = $this->area->y + $this->area->h;
         $this->setPageForRendering();
         $this->context->mpdf->Line($x1, $y1, $x2, $y2);
         $this->context->mpdf->Line($x1, $y2, $x2, $y1);
         $this->setLastPage();
     }
 }
Exemple #2
0
 public function render()
 {
     parent::render();
     if (!$this->dataValue) {
         return;
     }
     $this->setPageForRendering();
     if ($this->style->fontSize && $this->style->fontSize != $this->context->fontSize) {
         $this->context->fontSize = $this->style->fontSize;
         $this->context->mpdf->SetFontSize($this->context->fontSize);
     }
     $this->context->mpdf->WriteText($this->area->x, $this->area->y, $this->dataValue);
     $this->setLastPage();
 }
 public function render()
 {
     parent::render();
     array_push(self::$specItems, $this->dataValue);
 }