Lines Matching refs:mpdf

16 		$this->mpdf->ignorefollowingspaces = true;
17 $this->mpdf->lastoptionaltag = $tag; // Save current HTML specified optional endtag
21 $this->mpdf->InlineProperties = [];
22 $this->mpdf->InlineBDF = []; // mPDF 6
23 $this->mpdf->InlineBDFctr = 0; // mPDF 6
24 $this->mpdf->tdbegin = true;
25 $this->mpdf->col++;
27 while (isset($this->mpdf->cell[$this->mpdf->row][$this->mpdf->col])) {
28 $this->mpdf->col++;
32 if ($this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['nc'] < $this->mpdf->col + 1) {
33 $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['nc'] = $this->mpdf->col + 1;
36 $table = &$this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]];
49 if ($this->mpdf->simpleTables && $this->mpdf->row == 0 && $this->mpdf->col == 0) {
59 } elseif (!$this->mpdf->simpleTables) {
82 $c['border_details']['R']['c'] = $this->colorConverter->convert(0, $this->mpdf->PDFAXwarnings);
83 $c['border_details']['L']['c'] = $this->colorConverter->convert(0, $this->mpdf->PDFAXwarnings);
84 $c['border_details']['T']['c'] = $this->colorConverter->convert(0, $this->mpdf->PDFAXwarnings);
85 $c['border_details']['B']['c'] = $this->colorConverter->convert(0, $this->mpdf->PDFAXwarnings);
101 if ($this->mpdf->table_border_attr_set && $table['border_details']) {
103 if (!$this->mpdf->simpleTables) {
113 } elseif ($this->mpdf->simpleTables && $this->mpdf->row == 0 && $this->mpdf->col == 0) {
123 if ($this->mpdf->tablethead) {
125 if ($this->mpdf->thead_valign_default) {
126 $c['va'] = $this->getAlign($this->mpdf->thead_valign_default);
129 if ($this->mpdf->thead_textalign_default) {
130 $c['a'] = $this->getAlign($this->mpdf->thead_textalign_default);
133 if ($this->mpdf->thead_font_weight === 'B') {
134 $this->mpdf->SetStyle('B', true);
137 if ($this->mpdf->thead_font_style === 'I') {
138 $this->mpdf->SetStyle('I', true);
141 if ($this->mpdf->thead_font_smCaps === 'S') {
142 $this->mpdf->textvar |= TextVars::FC_SMALLCAPS;
147 if ($this->mpdf->tabletfoot) {
148 if ($this->mpdf->tfoot_valign_default) {
149 $c['va'] = $this->getAlign($this->mpdf->tfoot_valign_default);
151 if ($this->mpdf->tfoot_textalign_default) {
152 $c['a'] = $this->getAlign($this->mpdf->tfoot_textalign_default);
154 if ($this->mpdf->tfoot_font_weight === 'B') {
155 $this->mpdf->SetStyle('B', true);
157 if ($this->mpdf->tfoot_font_style === 'I') {
158 $this->mpdf->SetStyle('I', true);
160 if ($this->mpdf->tfoot_font_style === 'S') {
161 $this->mpdf->textvar |= TextVars::FC_SMALLCAPS;
166 if ($this->mpdf->trow_text_rotate) {
167 $c['R'] = $this->mpdf->trow_text_rotate;
170 $this->mpdf->cell_border_dominance_L = 0;
171 $this->mpdf->cell_border_dominance_R = 0;
172 $this->mpdf->cell_border_dominance_T = 0;
173 $this->mpdf->cell_border_dominance_B = 0;
177 $properties = $this->cssManager->array_merge_recursive_unique($this->mpdf->base_table_properties, $properties);
179 $this->mpdf->Reset(); // mPDF 6 ?????????????????????
181 $this->mpdf->setCSS($properties, 'TABLECELL', $tag);
183 $c['dfs'] = $this->mpdf->FontSize; // Default Font size
203 if (!empty($properties['BACKGROUND-IMAGE']) && !$this->mpdf->keep_block_together) {
204 $ret = $this->mpdf->SetBackground($properties, $this->mpdf->blk[$this->mpdf->blklvl]['inner_width']);
229 $d = array_search($char, $this->mpdf->decimal_align);
260 $c['cellLineHeight'] = $this->mpdf->fixLineheight($properties['LINE-HEIGHT']);
277 $bord = $this->mpdf->border_details($properties['BORDER']);
279 if (!$this->mpdf->simpleTables) {
285 $c['border_details']['L']['dom'] = $this->mpdf->cell_border_dominance_L;
286 $c['border_details']['R']['dom'] = $this->mpdf->cell_border_dominance_R;
287 $c['border_details']['T']['dom'] = $this->mpdf->cell_border_dominance_T;
288 $c['border_details']['B']['dom'] = $this->mpdf->cell_border_dominance_B;
289 } elseif ($this->mpdf->simpleTables && $this->mpdf->row == 0 && $this->mpdf->col == 0) {
298 if (!$this->mpdf->simpleTables) {
300 $c['border_details']['R'] = $this->mpdf->border_details($properties['BORDER-RIGHT']);
301 $this->mpdf->setBorder($c['border'], Border::RIGHT, $c['border_details']['R']['s']);
302 $c['border_details']['R']['dom'] = $this->mpdf->cell_border_dominance_R;
305 $c['border_details']['L'] = $this->mpdf->border_details($properties['BORDER-LEFT']);
306 $this->mpdf->setBorder($c['border'], Border::LEFT, $c['border_details']['L']['s']);
307 $c['border_details']['L']['dom'] = $this->mpdf->cell_border_dominance_L;
310 $c['border_details']['B'] = $this->mpdf->border_details($properties['BORDER-BOTTOM']);
311 $this->mpdf->setBorder($c['border'], Border::BOTTOM, $c['border_details']['B']['s']);
312 $c['border_details']['B']['dom'] = $this->mpdf->cell_border_dominance_B;
315 $c['border_details']['T'] = $this->mpdf->border_details($properties['BORDER-TOP']);
316 $this->mpdf->setBorder($c['border'], Border::TOP, $c['border_details']['T']['s']);
317 $c['border_details']['T']['dom'] = $this->mpdf->cell_border_dominance_T;
319 } elseif ($this->mpdf->simpleTables && $this->mpdf->row == 0 && $this->mpdf->col == 0) {
321 $bord = $this->mpdf->border_details($properties['BORDER-LEFT']);
334 if ($this->mpdf->simpleTables && $this->mpdf->row == 0 && $this->mpdf->col == 0 && !$table['borders_separate'] && $table['simple']['border']) {
340 if (!$table['borders_separate'] && !$this->mpdf->simpleTables && isset($table['trborder-left'][$this->mpdf->row])) {
341 if ($this->mpdf->col == 0) {
342 $left = $this->mpdf->border_details($table['trborder-left'][$this->mpdf->row]);
344 $this->mpdf->setBorder($c['border'], Border::LEFT, $c['border_details']['L']['s']);
346 $c['border_details']['B'] = $this->mpdf->border_details($table['trborder-bottom'][$this->mpdf->row]);
347 $this->mpdf->setBorder($c['border'], Border::BOTTOM, $c['border_details']['B']['s']);
348 $c['border_details']['T'] = $this->mpdf->border_details($table['trborder-top'][$this->mpdf->row]);
349 $this->mpdf->setBorder($c['border'], Border::TOP, $c['border_details']['T']['s']);
352 if ($this->mpdf->packTableData && !$this->mpdf->simpleTables) {
353 $c['borderbin'] = $this->mpdf->_packCellBorder($c);
358 $c['padding']['L'] = $this->sizeConverter->convert($properties['PADDING-LEFT'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
361 $c['padding']['R'] = $this->sizeConverter->convert($properties['PADDING-RIGHT'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
364 $c['padding']['B'] = $this->sizeConverter->convert($properties['PADDING-BOTTOM'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
367 $c['padding']['T'] = $this->sizeConverter->convert($properties['PADDING-TOP'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
377 if (strpos($w, '%') && !$this->mpdf->ignore_table_percents) {
380 elseif (!strpos($w, '%') && !$this->mpdf->ignore_table_widths) {
381 $c['w'] = $this->sizeConverter->convert($w, $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
386 $c['h'] = $this->sizeConverter->convert($properties['HEIGHT'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
388 $c['h'] = $this->sizeConverter->convert($attr['HEIGHT'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
404 $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col] = $c;
406 $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['s'] = 0;
410 $cs = $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['colspan'] = $attr['COLSPAN'];
413 if ($this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['nc'] < $this->mpdf->col + $cs) {
414 $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['nc'] = $this->mpdf->col + $cs;
417 for ($l = $this->mpdf->col; $l < $this->mpdf->col + $cs; $l++) {
418 if ($l - $this->mpdf->col) {
419 $this->mpdf->cell[$this->mpdf->row][$l] = 0;
424 $rs = $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['rowspan'] = $attr['ROWSPAN'];
427 for ($k = $this->mpdf->row; $k < $this->mpdf->row + $rs; $k++) {
428 for ($l = $this->mpdf->col; $l < $this->mpdf->col + $cs; $l++) {
429 if ($k - $this->mpdf->row || $l - $this->mpdf->col) {
430 $this->mpdf->cell[$k][$l] = 0;
439 if ($this->mpdf->tableLevel) {
440 $this->mpdf->lastoptionaltag = 'TR';
443 if (!$this->mpdf->tdbegin) {
446 $this->mpdf->tdbegin = false;
448 if (!isset($this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['maxs'])) {
449 if (!is_array($this->mpdf->cell[$this->mpdf->row][$this->mpdf->col])) {
452 $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['maxs'] = $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['s'];
453 } elseif ($this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['maxs'] < $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['s']) {
454 $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['maxs'] = $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['s'];
459 if (isset($this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['textbuffer'])) {
460 $ntb = count($this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['textbuffer']);
462 if ($ntb > 1 && $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['textbuffer'][$ntb - 1][0] === "\n") {
463 unset($this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['textbuffer'][$ntb - 1]);
466 if ($this->mpdf->tablethead) {
467 $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['is_thead'][$this->mpdf->row] = true;
468 if ($this->mpdf->tableLevel == 1) {
469 $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['headernrows']
470 = max($this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['headernrows'], $this->mpdf->row + 1);
473 if ($this->mpdf->tabletfoot) {
474 $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['is_tfoot'][$this->mpdf->row] = true;
475 if ($this->mpdf->tableLevel == 1) {
476 $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['footernrows']
478 $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['footernrows'],
479 $this->mpdf->row + 1 - $this->mpdf->table[$this->mpdf->tableLevel][$this->mpdf->tbctr[$this->mpdf->tableLevel]]['headernrows']
483 $this->mpdf->Reset();