Lines Matching refs:this
97 if ($this->orientation === 'landscape') {
98 $tmpw = $this->page_width;
99 $this->page_width = $this->page_height;
100 $this->page_height = $tmpw;
103 $this->noMarginWidth = $this->page_width - $this->left_margin - $this->right_margin;
105 if ($this->rtl) {
106 $this->alignRTL = 'right';
107 $this->entityRTL = '‏';
110 $this->default_font = 'Arial';
112 if ($this->show_generated_by) {
115 $element->addText($this->generated_by);
117 $this->footerElements[] = $element;
128 $this->currentStyle = '';
129 if (!empty($this->printedfootnotes)) {
130 foreach ($this->printedfootnotes as $element) {
131 $element->renderFootnote($this);
146 foreach ($this->styles as $class => $style) {
149 $style['font'] = $this->default_font;
171 …rgin" style="position: relative; top: auto; height: ', $this->header_margin, 'pt; width: ', $this-…
172 …echo '<div id="headerdiv" style="position: relative; top: auto; width: ', $this->noMarginWidth, 'p…
173 foreach ($this->headerElements as $element) {
175 $element->render($this);
177 $this->footnotes();
179 $this->addPage();
184 …'<script>document.getElementById("headerdiv").style.height="', $this->top_margin - $this->header_m…
185 …echo '<div id="bodydiv" style="position: relative; top: auto; width: ', $this->noMarginWidth, 'pt;…
186 $this->Y = 0;
187 $this->maxY = 0;
188 foreach ($this->bodyElements as $element) {
190 $element->render($this);
192 $this->footnotes();
194 $this->addPage();
199 … echo '<script>document.getElementById("bodydiv").style.height="', $this->maxY, 'pt";</script>';
200 …="position: relative; top: auto; height: ', $this->bottom_margin - $this->footer_margin, 'pt;width…
201 …echo '<div id="footerdiv" style="position: relative; top: auto; width: ', $this->noMarginWidth, 'p…
202 $this->Y = 0;
203 $this->X = 0;
204 $this->maxY = 0;
205 foreach ($this->footerElements as $element) {
207 $element->render($this);
209 $this->footnotes();
211 $this->addPage();
215 … echo '<script>document.getElementById("footerdiv").style.height="', $this->maxY, 'pt";</script>';
216 …argin" style="position: relative; top: auto; height: ', $this->footer_margin, 'pt;width:', $this->…
369 $this->headerElements = [];
379 $this->pageN++;
382 $this->maxY += 10;
385 if ($this->maxY < $this->Y) {
387 $this->maxY = $this->Y;
390 $this->Y = $this->maxY;
403 if ($this->maxY < $y) {
404 $this->maxY = $y;
417 $ct = count($this->printedfootnotes);
421 if ($this->printedfootnotes[$i]->getValue() === $val) {
426 return $this->printedfootnotes[$i];
433 $this->printedfootnotes[] = $footnote;
461 return $this->currentStyle;
471 if (empty($this->currentStyle)) {
472 return $this->default_font_size;
474 $style = $this->getStyle($this->currentStyle);
489 foreach ($this->printedfootnotes as $element) {
490 $h += $element->getFootnoteHeight($this, $cellWidth);
503 return $this->noMarginWidth - $this->X;
513 return $this->page_height - $this->top_margin;
525 $style = $this->getStyle($this->currentStyle);
540 $nl = $this->countLines($str);
543 return ceil($this->getCurrentStyleHeight() * $this->cellHeightRatio * $nl);
553 return $this->X;
563 return $this->Y;
573 return $this->pageN;
585 $this->currentStyle = $s;
597 $this->X = $x;
611 $this->Y = $y;
612 if ($this->maxY < $y) {
613 $this->maxY = $y;
629 $this->setX($x);
630 $this->setY($y);
643 $line_width = (int) ($width / ($this->getCurrentStyleHeight() / 2));
647 …$lines = array_map(fn (string $string): string => $this->utf8WordWrap($string, $line_width), $line…
703 $style = $this->getStyle($this->getCurrentStyle());