%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php
namespace Mpdf\Tag;
class Columns extends Tag
{
/**
* @param string $tag
* @return \Mpdf\Tag\Tag
*/
private function getTagInstance($tag)
{
$className = \Mpdf\Tag::getTagClassName($tag);
if (class_exists($className)) {
return new $className(
$this->mpdf,
$this->cache,
$this->cssManager,
$this->form,
$this->otl,
$this->tableOfContents,
$this->sizeConverter,
$this->colorConverter,
$this->imageProcessor,
$this->languageToFont
);
}
return null;
}
public function open($attr, &$ahtml, &$ihtml)
{
if (isset($attr['COLUMN-COUNT']) && ($attr['COLUMN-COUNT'] || $attr['COLUMN-COUNT'] === '0')) {
// Close any open block tags
for ($b = $this->mpdf->blklvl; $b > 0; $b--) {
if ($t = $this->getTagInstance($this->mpdf->blk[$b]['tag'])) {
$t->close($ahtml, $ihtml);
}
}
if (!empty($this->mpdf->textbuffer)) { //Output previously buffered content
$this->mpdf->printbuffer($this->mpdf->textbuffer);
$this->mpdf->textbuffer = [];
}
if (!empty($attr['VALIGN'])) {
if ($attr['VALIGN'] === 'J') {
$valign = 'J';
} else {
$valign = $this->getAlign($attr['VALIGN']);
}
} else {
$valign = '';
}
if (!empty($attr['COLUMN-GAP'])) {
$this->mpdf->SetColumns($attr['COLUMN-COUNT'], $valign, $attr['COLUMN-GAP']);
} else {
$this->mpdf->SetColumns($attr['COLUMN-COUNT'], $valign);
}
}
$this->mpdf->ignorefollowingspaces = true;
}
public function close(&$ahtml, &$ihtml)
{
}
}