Lines Matching refs:renderer
39 * @param PdfRenderer $renderer
43 public function render($renderer): void argument
71 $renderer->checkFootnote($element);
122 $renderer->largestFontHeight = 0;
126 $cX = $renderer->tcpdf->GetX();
129 $cX = $renderer->addMarginX($this->left);
134 $cY = $renderer->tcpdf->GetY();
137 $renderer->tcpdf->setY($cY);
141 if ($this->width === 0.0 || $this->width > $renderer->getRemainingWidthPDF()) {
142 $cW = $renderer->getRemainingWidthPDF();
148 $cM = $renderer->tcpdf->getMargins();
175 $lw = $this->elements[$i]->getWidth($renderer);
191 $eH += $this->elements[$i]->getHeight($renderer);
202 $cHT = ($cHT + 1) * $renderer->tcpdf->getCellHeightRatio();
204 $cHT *= $renderer->largestFontHeight;
222 if ($cH < $renderer->lastCellHeight) {
223 $cH = $renderer->lastCellHeight;
228 $renderer->lastCellHeight = 0;
229 if ($renderer->checkPageBreakPDF($cH)) {
230 $cY = $renderer->tcpdf->GetY();
247 $renderer->tcpdf->setFillColor($r, $g, $b);
254 if (!$renderer->tcpdf->getRTL()) {
257 $cXM = $renderer->tcpdf->getPageWidth() - $cX - $cW;
259 $renderer->tcpdf->Rect($cXM, $cY, $cW, $cH, $cS);
265 $renderer->tcpdf->setY($cY + $cM['padding_top']);
267 $renderer->tcpdf->setY($cY + $cM['cell']);
272 if (!$renderer->tcpdf->getRTL()) {
275 $renderer->tcpdf->setLeftMargin($cX + $cM['padding_left']);
277 $renderer->tcpdf->setLeftMargin($cX + $cM['cell']);
280 $renderer->tcpdf->setLeftMargin($cX);
282 … $renderer->tcpdf->setRightMargin($renderer->getRemainingWidthPDF() - $cW + $cM['right']);
285 $renderer->tcpdf->setRightMargin($cX + $cM['padding_right']);
287 $renderer->tcpdf->setRightMargin($cX + $cM['cell']);
289 $renderer->tcpdf->setLeftMargin($renderer->getRemainingWidthPDF() - $cW + $cM['left']);
291 $renderer->tcpdf->setRightMargin($cX);
292 $renderer->tcpdf->setLeftMargin($renderer->getRemainingWidthPDF() - $cW + $cM['left']);
295 $cPN = $renderer->tcpdf->getPage();
300 $element->render($renderer);
302 $renderer->footnotes();
304 $renderer->newPage();
308 $renderer->tcpdf->setLeftMargin($cM['left']);
309 $renderer->tcpdf->setRightMargin($cM['right']);
315 if ($cPN !== $renderer->tcpdf->getPage()) {
316 $renderer->tcpdf->setPage($cPN);
321 $renderer->tcpdf->setXY($cX + $cW, $cY);
322 $renderer->lastCellHeight = $cH;
325 $renderer->addMarginX(0);
326 $renderer->tcpdf->setY($cY + $cH);
327 $renderer->lastCellHeight = 0;