Beispiel #1
0
 public function write()
 {
     parent::write();
     foreach ($this->children as $child) {
         if ($child != null && get_class($child) != "" && !$child->onEachPage) {
             $child->write();
         }
     }
 }
Beispiel #2
0
 public function write()
 {
     parent::write();
     $imageData = $this->getContent();
     if ($imageData['source'] == null) {
         return;
     }
     $this->componentPdfWriter->Image($imageData['fileName'], $this->getPageX(), $this->getPageY(), $this->width, $this->height);
 }
Beispiel #3
0
 public function write()
 {
     parent::write();
     if ($this->value == null || strlen($this->value) == 0 || $this->fontSize == 0) {
         return;
     }
     $font = $this->getFont();
     $font->setFont($this->componentPdfWriter);
     $this->componentPdfWriter->SetXY($this->getPageX(), $this->getPageY());
     $val = DataUtils::getValue($this->value);
     if ($this->width == 0) {
         $this->width = $this->componentPdfWriter->GetStringWidth($val);
     }
     $this->componentPdfWriter->MultiCell($this->width + 6, $this->fontSize + 6, $val, 0, "L", false);
 }