Lines Matching refs:this

77         foreach ($this->headerElements as $element) {
79 $element->render($this);
81 $this->footnotes();
83 $this->newPage();
95 $this->tcpdf->AddPage();
97 foreach ($this->bodyElements as $element) {
99 $element->render($this);
101 $this->footnotes();
103 $this->newPage();
115 foreach ($this->printedfootnotes as $element) {
116 … if ($this->tcpdf->GetY() + $element->getFootnoteHeight($this) > $this->tcpdf->getPageHeight()) {
117 $this->tcpdf->AddPage();
120 $element->renderFootnote($this);
122 if ($this->tcpdf->GetY() > $this->tcpdf->getPageHeight()) {
123 $this->tcpdf->AddPage();
135 foreach ($this->footerElements as $element) {
137 $element->render($this);
139 $this->footnotes();
141 $this->newPage();
155 unset($this->headerElements[$index]);
167 unset($this->bodyElements[$index]);
177 unset($this->headerElements);
178 $this->headerElements = [];
188 return $this->currentStyle;
200 $this->currentStyle = $s;
201 $style = $this->getStyle($s);
202 $this->tcpdf->setFont($style['font'], $style['style'], $style['size']);
214 return $this->styles[$s] ?? $this->styles[$this->getCurrentStyle()];
227 $m = $this->tcpdf->getMargins();
228 if ($this->tcpdf->getRTL()) {
233 $this->tcpdf->setX($x);
246 $m = $this->tcpdf->getMargins();
247 if ($this->tcpdf->getRTL()) {
248 return $this->tcpdf->getRemainingWidth() + $m['right'];
251 return $this->tcpdf->getRemainingWidth() + $m['left'];
262 foreach ($this->printedfootnotes as $element) {
263 $h += $element->getHeight($this);
276 if ($this->currentStyle === '') {
277 return $this->default_font_size;
279 $style = $this->getStyle($this->currentStyle);
293 $ct = count($this->printedfootnotes);
297 if ($this->printedfootnotes[$i]->getValue() === $val) {
302 return $this->printedfootnotes[$i];
308 $footnote->setAddlink((string) $this->tcpdf->AddLink());
309 $this->printedfootnotes[] = $footnote;
322 if ($this->lastpicpage > $this->tcpdf->getPage()) {
323 $this->tcpdf->setPage($this->lastpicpage);
325 $this->tcpdf->AddPage();
337 return $this->tcpdf->checkPageBreak($height);
347 return $this->tcpdf->getRemainingWidth();
358 $this->tcpdf = new TcpdfWrapper(
359 $this->orientation,
361 [$this->page_width, $this->page_height],
367 $this->tcpdf->setMargins($this->left_margin, $this->top_margin, $this->right_margin);
368 $this->tcpdf->setHeaderMargin($this->header_margin);
369 $this->tcpdf->setFooterMargin($this->footer_margin);
370 $this->tcpdf->setAutoPageBreak(true, $this->bottom_margin);
371 $this->tcpdf->setFontSubsetting(self::SUBSETTING);
372 $this->tcpdf->setCompression(self::COMPRESSION);
373 $this->tcpdf->setRTL($this->rtl);
374 $this->tcpdf->setCreator(Webtrees::NAME . ' ' . Webtrees::VERSION);
375 $this->tcpdf->setAuthor($this->rauthor);
376 $this->tcpdf->setTitle($this->title);
377 $this->tcpdf->setSubject($this->rsubject);
378 $this->tcpdf->setKeywords($this->rkeywords);
379 $this->tcpdf->setHeaderData('', 0, $this->title);
380 $this->tcpdf->setHeaderFont([$this->default_font, '', $this->default_font_size]);
382 if ($this->show_generated_by) {
385 $element->addText($this->generated_by);
387 $this->addElementToFooter($element);
398 $this->body();
399 echo $this->tcpdf->Output('doc.pdf', 'S');