예제 #1
0
 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);
 }
예제 #2
0
 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();
 }
예제 #3
0
 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);
     }
 }
예제 #4
0
 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);
     }
 }