Lines Matching refs:renderer
35 * @param PdfRenderer $renderer
39 public function render($renderer): void argument
41 $temptext = str_replace('#PAGENUM#', (string) $renderer->tcpdf->PageNo(), $this->text);
52 if ($renderer->getCurrentStyle() !== $this->styleName) {
53 $renderer->setCurrentStyle($this->styleName);
66 $renderer->tcpdf->setFillColor($r, $g, $b);
80 $renderer->tcpdf->setDrawColor($r, $g, $b);
88 $renderer->tcpdf->setTextColor($r, $g, $b);
90 $renderer->tcpdf->setTextColor(0, 0, 0);
95 $cX = $renderer->tcpdf->GetX();
98 $cX = $renderer->addMarginX($this->left);
102 if ($this->width === 0.0 || $this->width > $renderer->getRemainingWidthPDF()) {
103 $this->width = $renderer->getRemainingWidthPDF();
107 $this->top = $renderer->tcpdf->GetY();
109 $renderer->tcpdf->setY($this->top);
113 if ($renderer->lastCellHeight > $this->height) {
114 $this->height = $renderer->lastCellHeight;
118 $cHT = $renderer->tcpdf->getNumLines($temptext, $this->width);
119 … $cHT = $cHT * $renderer->tcpdf->getCellHeightRatio() * $renderer->getCurrentStyleHeight();
120 $cM = $renderer->tcpdf->getMargins();
128 if ($renderer->checkPageBreakPDF($cHT)) {
129 $this->top = $renderer->tcpdf->GetY();
134 $renderer->tcpdf->MultiCell(
150 $renderer->lastCellHeight = 0;
151 } elseif ($renderer->lastCellHeight < $renderer->tcpdf->getLastH()) {
153 $renderer->lastCellHeight = $renderer->tcpdf->getLastH();
158 $renderer->tcpdf->Link($cX, $this->top, $this->width, $this->height, $this->url);
161 $renderer->tcpdf->setDrawColor(0, 0, 0);
162 $renderer->tcpdf->setTextColor(0, 0, 0);