Lines Matching refs:renderer
36 * @param PdfRenderer $renderer
40 public function render($renderer): void argument
42 $renderer->setCurrentStyle('footnotenum');
43 …$renderer->tcpdf->Write($renderer->getCurrentStyleHeight(), $this->numText, $this->addlink); //sou…
50 * @param PdfRenderer $renderer
54 public function renderFootnote($renderer): void argument
56 if ($renderer->getCurrentStyle() !== $this->styleName) {
57 $renderer->setCurrentStyle($this->styleName);
59 $temptext = str_replace('#PAGENUM#', (string) $renderer->tcpdf->PageNo(), $this->text);
61 $renderer->tcpdf->setLink($this->addlink, -1, -1);
64 if ($renderer->tcpdf->getRTL()) {
65 … $renderer->tcpdf->writeHTML('<span> .' . $this->num . '</span>', false, false, false, false, '');
77 $renderer->tcpdf->writeHTML($temptext, true, false, true, false, '');
83 * @param PdfRenderer $renderer
87 public function getFootnoteHeight(PdfRenderer $renderer): float argument
96 * @param PdfRenderer $renderer
100 public function getWidth($renderer): array argument
103 $renderer->setCurrentStyle('footnotenum');
106 $fsize = $renderer->getCurrentStyleHeight();
107 if ($fsize > $renderer->largestFontHeight) {
108 $renderer->largestFontHeight = $fsize;
113 $renderer->checkFootnote($this);
117 $lw = ceil($renderer->tcpdf->GetStringWidth($this->numText));
130 $lw = ceil($renderer->tcpdf->GetStringWidth($line));
138 $lw += ceil($renderer->tcpdf->GetStringWidth($word . ' '));
145 $lw = $renderer->tcpdf->GetStringWidth($word . ' ');