public function write() { $color = DataUtils::get_rgb_color($this->strokeColor); $this->componentPdfWriter->SetDrawColor($color["r"] * 255, $color["g"] * 255, $color["b"] * 255); $this->componentPdfWriter->SetLineWidth($this->width); $this->componentPdfWriter->Line($this->getPageX(), $this->getPageY(), $this->getPageX(), $this->getPageY() + $this->height); }
public function write() { $backgroundColor = DataUtils::get_rgb_color($this->backgroundColor); $borderColor = DataUtils::get_rgb_color($this->borderColor); $this->componentPdfWriter->SetFillColor($backgroundColor['r'], $backgroundColor['g'], $backgroundColor['b']); $this->componentPdfWriter->SetDrawColor($borderColor['r'], $borderColor['g'], $borderColor['b']); $this->componentPdfWriter->Rect($this->getPageX(), $this->getPageY(), $this->width, $this->height, "DF"); parent::write(); }
public function setFontColor($rgbColor, $gColor = "", $bColor = "") { if (is_int($rgbColor) && is_int($gColor) && is_int($bColor)) { $this->fontColor["r"] = $rgbColor; $this->fontColor["g"] = $gColor; $this->fontColor["b"] = $bColor; } else { $this->fontColor = DataUtils::get_rgb_color($rgbColor); } }
public function write() { $backgroundColor = DataUtils::get_rgb_color($this->backgroundColor); $borderColor = DataUtils::get_rgb_color($this->borderColor); $this->componentPdfWriter->SetFillColor(255); $this->componentPdfWriter->SetDrawColor(0); $this->componentPdfWriter->Rect($this->getPageX(), $this->getPageY(), $this->width, $this->height, "DF"); $this->value = $this->label; parent::write(); if ($this->isSubmit) { $this->componentPdfWriter->Link($this->getPageX(), $this->getPageY(), $this->width, $this->height, $this->url); } }