|
@@ 352-367 (lines=16) @@
|
| 349 |
|
$this->SetX($x); |
| 350 |
|
$y_0 = $this->GetY(); |
| 351 |
|
$y_s = []; |
| 352 |
|
foreach($headers as $i => $header) { |
| 353 |
|
$x_0 = $this->GetX(); |
| 354 |
|
$this->SetXY($x_0, $y_0); |
| 355 |
|
list($value1, $value2) = explode("\n", $row[$i]); |
| 356 |
|
$y_1 = $this->MultiCell($options['width'][$i], $options['height'], $value1, '', $options['align'][$i], false, 0); |
| 357 |
|
if ($value2) { |
| 358 |
|
$this->Ln(); |
| 359 |
|
$this->SetX($x_0); |
| 360 |
|
$this->SetFont($this->defaultOptions['font']['family'], '', $options['fontsize']-2); |
| 361 |
|
$y_2 = $this->MultiCell($options['width'][$i], $options['height'], $value2, '', $options['align'][$i], false, 0); |
| 362 |
|
$this->SetFont($this->defaultOptions['font']['family'], '', $options['fontsize']); |
| 363 |
|
$y_s[] = $y_1 + $y_2*0.9; |
| 364 |
|
} else { |
| 365 |
|
$y_s[] = $y_1; |
| 366 |
|
} |
| 367 |
|
} |
| 368 |
|
$this->Ln(max($y_s)*5); |
| 369 |
|
// si se pasó a página siguiente se hace rollback y se crea nueva página con cabecera nuevamente en la tabla |
| 370 |
|
if($num_pages < $this->getNumPages()) { |
|
@@ 381-396 (lines=16) @@
|
| 378 |
|
$this->SetX($x); |
| 379 |
|
$y_0 = $this->GetY(); |
| 380 |
|
$y_s = []; |
| 381 |
|
foreach($headers as $i => $header) { |
| 382 |
|
$x_0 = $this->GetX(); |
| 383 |
|
$this->SetXY($x_0, $y_0); |
| 384 |
|
list($value1, $value2) = explode("\n", $row[$i]); |
| 385 |
|
$y_1 = $this->MultiCell($options['width'][$i], $options['height'], $value1, '', $options['align'][$i], false, 0); |
| 386 |
|
if ($value2) { |
| 387 |
|
$this->Ln(); |
| 388 |
|
$this->SetX($x_0); |
| 389 |
|
$this->SetFont($this->defaultOptions['font']['family'], '', $options['fontsize']-2); |
| 390 |
|
$y_2 = $this->MultiCell($options['width'][$i], $options['height'], $value2, '', $options['align'][$i], false, 0); |
| 391 |
|
$this->SetFont($this->defaultOptions['font']['family'], '', $options['fontsize']); |
| 392 |
|
$y_s[] = $y_1 + $y_2*0.9; |
| 393 |
|
} else { |
| 394 |
|
$y_s[] = $y_1; |
| 395 |
|
} |
| 396 |
|
} |
| 397 |
|
$this->Ln(max($y_s)*5); |
| 398 |
|
} else { |
| 399 |
|
$this->commitTransaction(); |