Lines Matching +defs:m +defs:t

700 	 * Can be useful when using CDN with HTTPS and if you don't want to configure settings with SSL certificates.
1306 // sets l r t margin
1355 if (preg_match('/([\-+])aCJK/i', $mode, $m)) {
1357 if ($m[1] == '+') {
1641 if (preg_match('/([0-9a-zA-Z]*)-([P,L])/i', $format, $m)) {
1642 $format = $m[1];
1643 $orientation = $m[2];
2194 } elseif (preg_match('/(\d+)dpi/i', $properties['BACKGROUND-IMAGE-RESOLUTION'], $m)) {
2195 $dpi = $m[1];
2302 $s .= sprintf('%.3F %.3F m ', ($clx) * Mpdf::SCALE, ($this->h - ($cly)) * Mpdf::SCALE); // start point TL before the arc
2617 $pb['clippath'] = sprintf(' q 0 w %.3F %.3F m %.3F %.3F l %.3F %.3F l %.3F %.3F l %.3F %.3F l W n ', $x, $y, $x, $y + $h, $x + $w, $y + $h, $x + $w, $y, $x, $y);
2870 // Don't re-open tags for lowest level elements - so need to do some adjustments
3007 // Don't correct more than once for background DIV containing a Float
3337 list($name, $c, $m, $y, $k) = preg_split("/\t/", $sc);
3339 $m = intval($m);
3342 $this->AddSpotColor($name, $c, $m, $y, $k);
3346 function AddSpotColor($name, $c, $m, $y, $k)
3351 $this->spotColors[$name] = ['i' => $i, 'c' => $c, 'm' => $m, 'y' => $y, 'k' => $k];
3759 $this->writer->write(sprintf('%.3F %.3F m %.3F %.3F l S', $x1 * Mpdf::SCALE, ($this->h - $y1) * Mpdf::SCALE, $x2 * Mpdf::SCALE, ($this->h - $y2) * Mpdf::SCALE));
3785 $s .= sprintf('%.3F %.3F m %.3F %.3F l S', $x1 * Mpdf::SCALE, ($this->h - $y1) * Mpdf::SCALE, $x5 * Mpdf::SCALE, $y5 * Mpdf::SCALE);
3789 $s .= sprintf('%.3F %.3F m %.3F %.3F l %.3F %.3F l %.3F %.3F l %.3F %.3F l ', $x5 * Mpdf::SCALE, $y5 * Mpdf::SCALE, $x3 * Mpdf::SCALE, $y3 * Mpdf::SCALE, $x2 * Mpdf::SCALE, ($this->h - $y2) * Mpdf::SCALE, $x4 * Mpdf::SCALE, $y4 * Mpdf::SCALE, $x5 * Mpdf::SCALE, $y5 * Mpdf::SCALE);
3839 $this->AddCJKFont($family); // don't need to add style
4111 $this->AddCJKFont($family); // don't need to add style
4326 if ($this->keep_block_together) { // don't write yet
4947 $s .= sprintf('%.3F %.3F m ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw) * Mpdf::SCALE);
4958 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw * 5 / 6) * Mpdf::SCALE, ($this->x + $w + $rbw) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw * 5 / 6) * Mpdf::SCALE);
4959 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw / 6) * Mpdf::SCALE, ($this->x + $w + $rbw) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw / 6) * Mpdf::SCALE);
4962 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw / 2) * Mpdf::SCALE, ($this->x + $w + $rbw - $short) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw / 2) * Mpdf::SCALE);
4965 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw / 2) * Mpdf::SCALE, ($this->x + $w + $rbw - $short) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw / 2) * Mpdf::SCALE);
4986 $s .= sprintf('%.3F %.3F m ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw) * Mpdf::SCALE);
4997 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw / 6) * Mpdf::SCALE, ($this->x + $w + $rbw - $short) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw / 6) * Mpdf::SCALE);
4998 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw * 5 / 6) * Mpdf::SCALE, ($this->x + $w + $rbw - $short) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw * 5 / 6) * Mpdf::SCALE);
5001 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw / 2) * Mpdf::SCALE, ($this->x + $w + $rbw - $short) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw / 2) * Mpdf::SCALE);
5004 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw / 2) * Mpdf::SCALE, ($this->x + $w + $rbw - $short) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw / 2) * Mpdf::SCALE);
5025 $s .= sprintf('%.3F %.3F m ', ($this->x - $lbw) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw) * Mpdf::SCALE);
5035 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw / 6) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw) * Mpdf::SCALE, ($this->x - $lbw / 6) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw + $short) * Mpdf::SCALE);
5036 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw * 5 / 6) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw) * Mpdf::SCALE, ($this->x - $lbw * 5 / 6) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw + $short) * Mpdf::SCALE);
5039 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw / 2) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw) * Mpdf::SCALE, ($this->x - $lbw / 2) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw + $short) * Mpdf::SCALE);
5042 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x - $lbw / 2) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw) * Mpdf::SCALE, ($this->x - $lbw / 2) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw + $short) * Mpdf::SCALE);
5064 $s .= sprintf('%.3F %.3F m ', ($this->x + $w + $rbw) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw) * Mpdf::SCALE);
5074 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x + $w + $rbw / 6) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw) * Mpdf::SCALE, ($this->x + $w + $rbw / 6) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw + $short) * Mpdf::SCALE);
5075 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x + $w + $rbw * 5 / 6) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw) * Mpdf::SCALE, ($this->x + $w + $rbw * 5 / 6) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw + $short) * Mpdf::SCALE);
5078 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x + $w + $rbw / 2) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw) * Mpdf::SCALE, ($this->x + $w + $rbw / 2) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw + $short) * Mpdf::SCALE);
5081 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($this->x + $w + $rbw / 2) * Mpdf::SCALE, ($this->h - $bord_boxtop + $tbw) * Mpdf::SCALE, ($this->x + $w + $rbw / 2) * Mpdf::SCALE, ($this->h - $bord_boxbottom - $bbw + $short) * Mpdf::SCALE);
5109 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', $x * Mpdf::SCALE, ($this->h - $bord_boxtop) * Mpdf::SCALE, $x * Mpdf::SCALE, ($this->h - ($bord_boxbottom)) * Mpdf::SCALE);
5113 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', $x * Mpdf::SCALE, ($this->h - $bord_boxtop) * Mpdf::SCALE, ($x + $w) * Mpdf::SCALE, ($this->h - $bord_boxtop) * Mpdf::SCALE);
5117 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', ($x + $w) * Mpdf::SCALE, ($this->h - $bord_boxtop) * Mpdf::SCALE, ($x + $w) * Mpdf::SCALE, ($this->h - ($bord_boxbottom)) * Mpdf::SCALE);
5121 $s .= sprintf('%.3F %.3F m %.3F %.3F l S ', $x * Mpdf::SCALE, ($this->h - ($bord_boxbottom)) * Mpdf::SCALE, ($x + $w) * Mpdf::SCALE, ($this->h - ($bord_boxbottom)) * Mpdf::SCALE);
5153 } elseif ($this->falseBoldWeight && strpos($this->ReqFontStyle, "B") !== false && strpos($this->FontStyle, "B") === false && !($textvar & TextVars::FC_SMALLCAPS)) { // can't use together with OUTLINE or Small Caps // mPDF 5.7.1 ??? why not with SmallCaps ???
5206 $t = explode(' ', $txt2);
5207 $numt = count($t);
5209 $tx = $t[$i];
5503 if (substr($OTLdata['group'], ($i + 1), 1) != 'M') { // Don't add inter-character spacing before Marks
5776 $t = explode(' ', $txt);
5777 for ($i = 0; $i < count($t); $i++) {
5778 $tx = $t[$i];
5795 if (($i + 1) < count($t)) {
6037 // JUSTIFY J using Unicode fonts (Word spacing doesn't work)
6151 // JUSTIFY J using Unicode fonts (Word spacing doesn't work)
6468 if (isset($content[count($content) - 1]) && preg_match('/[ ]+$/', $content[count($content) - 1], $m)) {
6469 $strip = strlen($m[0]);
6874 } // false -> don't advance y
7255 preg_match_all('/(translatex|translatey|translate|scalex|scaley|scale|rotate|skewX|skewY|skew)\((.*?)\)/is', $objattr['transform'], $m);
7256 if (count($m[0])) {
7257 for ($i = 0; $i < count($m[0]); $i++) {
7258 $c = strtolower($m[1][$i]);
7259 $v = trim($m[2][$i]);
7976 // it won't fit, output what we already have
7979 // contains any content that didn't make it into this print
8103 // Don't break a URL
8117 // Don't break if HyphenMinus AND (a URL or before a numeral or before a >)
8511 } // false -> don't advance y
8555 // Now unset these values so they don't influence GetStringwidth below or in fn. Cell
9074 function _getObjAttr($t)
9076 $c = explode("\xbb\xa4\xac", $t, 2);
9563 // don't use length if server using compression
9595 // don't use length if server using compression
9914 if ($this->keep_block_together) { // don't write yet
9971 $m = [];
9973 $m[$i] = array_merge($m1[$i], $m2[$i], $m3[$i]);
9975 if (count($m[0])) {
9977 for ($i = 0; $i < count($m[0]); $i++) {
9978 $key = $m[1][$i] * 2;
9979 if ($m[3][$i] == 'EMCZ') {
9981 } elseif ($m[3][$i] == 'EMCGZ') {
9988 $this->pages[$pn] = str_replace($m[0][$i], '', $this->pages[$pn]);
9989 $this->pages[$pn] .= "\n" . $m[0][$i] . "\n";
10473 return sprintf('%.3F %.3F m %.3F %.3F l S', $x * Mpdf::SCALE, ($this->h - $y) * Mpdf::SCALE, ($x * Mpdf::SCALE) + $w, ($this->h - $y) * Mpdf::SCALE);
10491 $this->SetFont($this->watermark_font, "B", $fontsize, false); // Don't output
10538 $this->SetFont($this->watermark_font, "B", $szfont, false); // Don't output
10632 $this->writer->write(sprintf('%.3F %.3F m', ($x + $r) * Mpdf::SCALE, ($hp - $y) * Mpdf::SCALE));
11171 if ($line_stacking_strategy == 'block-line-height' || $line_stacking_strategy == 'grid-height' || $line_stacking_strategy == 'max-height') { // don't include extended block progression of all inline elements
11237 // Until most fonts have OpenType BASE tables, this won't work
11240 if ($line_stacking_strategy == 'block-line-height' || $line_stacking_strategy == 'grid-height' || $line_stacking_strategy == 'max-height') { // don't include extended block progression of all inline elements
11665 } elseif (preg_match('/(arabic-indic|bengali|devanagari|gujarati|gurmukhi|kannada|malayalam|oriya|persian|tamil|telugu|thai|urdu|cambodian|khmer|lao|myanmar)/i', $lowertype, $m)) {
11667 $cp = $decToOther->getCodePage($m[1]);
11836 foreach ($tablehf['textbuffer'] as $k => $t) {
11837 if (!is_array($t[0]) && preg_match('/{iteration ([a-zA-Z0-9_]+)}/', $t[0], $m)) {
11838 $vname = '__' . $m[1] . '_';
11844 $tablehf['textbuffer'][$k][0] = preg_replace('/{iteration ' . $m[1] . '}/', $this->$vname, $tablehf['textbuffer'][$k][0]);
12034 if ($horf == 'F' && preg_match('/{colsum([0-9]*)[_]*}/', $textbuffer[0][0], $m)) {
12035 $rep = sprintf("%01." . intval($m[1]) . "f", $this->colsums[$colctr - 1]);
12069 foreach ($tablehf['textbuffer'] as $t) {
12070 $str .= $t[0] . ' ';
13035 $m = $this->cropMarkMargin; // Distance of crop mark from margin
13038 $bx = $this->page_box['outer_width_LR'] - $m;
13041 $dx = $this->w - $this->page_box['outer_width_LR'] + $m;
13044 $by = $this->page_box['outer_width_TB'] - $m;
13047 $dy = $this->h - $this->page_box['outer_width_TB'] + $m;
13060 $hd = date('Y-m-d H:i') . ' Page ' . $this->page . ' of {nb}';
13075 $m = $this->crossMarkMargin; // Distance of cross mark from margin
13076 $x1 = $this->page_box['outer_width_LR'] - $m;
13077 $x2 = $this->w - $this->page_box['outer_width_LR'] + $m;
13078 $y1 = $this->page_box['outer_width_TB'] - $m;
13079 $y2 = $this->h - $this->page_box['outer_width_TB'] + $m;
13200 if (preg_match('/<base[^>]*href=["\']([^"\'>]*)["\']/i', $html, $m)) {
13201 $this->SetBasePath($m[1]);
13205 if ($this->autoLangToFont && !$this->usingCoreFont && preg_match('/<html [^>]*lang=[\'\"](.*?)[\'\"]/ism', $html, $m)) {
13206 $html_lang = $m[1];
13214 if (preg_match('/<body([^>]*)>(.*?)<\/body>/ism', $html, $m) || preg_match('/<body([^>]*)>(.*)$/ism', $html, $m)) {
13215 $html = $m[2];
13217 if (preg_match('/style=[\"](.*?)[\"]/ism', $m[1], $mm) || preg_match('/style=[\'](.*?)[\']/ism', $m[1], $mm)) {
13220 if (preg_match('/dir=[\'\"]\s*rtl\s*[\'\"]/ism', $m[1])) {
13226 if ($this->autoLangToFont && !$this->onlyCoreFonts && preg_match('/lang=[\'\"](.*?)[\'\"]/ism', $m[1], $mm)) {
13390 // Don't allow non-breaking spaces that are converted to substituted chars or will break anyway and mess up table width calc.
14896 $t = atan2($y, $x);
14898 $newx = $b / sqrt((($b * $b) / ($a * $a)) + ( tan($t) * tan($t) ));
14899 $newy = $a / sqrt((($a * $a) / ($b * $b)) + ( (1 / tan($t)) * (1 / tan($t)) ));
15492 } elseif (preg_match('/U\+([a-fA-F0-9]+)/i', $listitemtype, $m)) { // SYMBOL 2 (needs new font)
15494 if ($this->_charDefined($this->CurrentFont['cw'], hexdec($m[1]))) {
15495 $list_item_marker = UtfString::codeHex2utf($m[1]);
15499 if (preg_match('/rgb\(.*?\)/', $listitemtype, $m)) {
15500 $list_item_color = $this->colorConverter->convert($m[0], $this->PDFAXwarnings);
15549 $m = strtr($this->list_number_suffix, ")]}", "([{") . $num;
15551 $m = $num . $this->list_number_suffix;
15559 $objattr['text'] = $m;
15642 $blt_width = $this->GetStringWidth(str_repeat('m', strlen($maxnuma)) . $this->list_number_suffix);
15761 function _saveTextBuffer($t, $link = '', $intlink = '', $return = false)
15765 $arr[0] = $t;
15826 function _saveCellTextBuffer($t, $link = '', $intlink = '')
15829 $arr[0] = $t;
16835 $this->writer->write(sprintf('%.3F %.3F m ', ($x0) * Mpdf::SCALE, ($this->h - ($y0)) * Mpdf::SCALE));
16856 $s .= (sprintf('%.3F %.3F m ', ($x0 + $w) * Mpdf::SCALE, ($this->h - ($y0 + ($border_top / 2))) * Mpdf::SCALE)) . "\n";
16858 $s .= (sprintf('%.3F %.3F m ', ($x0 + $w - ($border_top / 2)) * Mpdf::SCALE, ($this->h - ($y0 + ($border_top / 2))) * Mpdf::SCALE)) . "\n";
16868 $s .= (sprintf('%.3F %.3F m ', $legbreakL * Mpdf::SCALE, ($this->h - ($y0 + ($border_top / 2))) * Mpdf::SCALE)) . "\n";
16871 $s .= (sprintf('%.3F %.3F m ', ($x0 + $brTL_H ) * Mpdf::SCALE, ($this->h - ($y0 + ($border_top / 2))) * Mpdf::SCALE)) . "\n";
16884 $s .= (sprintf('%.3F %.3F m ', $legbreakL * Mpdf::SCALE, ($this->h - ($y0 + ($border_top / 2))) * Mpdf::SCALE)) . "\n";
16891 $s .= (sprintf('%.3F %.3F m ', ($x0) * Mpdf::SCALE, ($this->h - ($y0 + ($border_top / 2))) * Mpdf::SCALE)) . "\n";
16893 $s .= (sprintf('%.3F %.3F m ', ($x0 + $border_top / 2) * Mpdf::SCALE, ($this->h - ($y0 + ($border_top / 2))) * Mpdf::SCALE)) . "\n";
16932 $this->writer->write(sprintf('%.3F %.3F m ', ($x0) * Mpdf::SCALE, ($this->h - ($y0 + $h)) * Mpdf::SCALE));
16951 $s .= (sprintf('%.3F %.3F m ', ($x0) * Mpdf::SCALE, ($this->h - ($y0 + $h - ($border_bottom / 2))) * Mpdf::SCALE)) . "\n";
16953 $s .= (sprintf('%.3F %.3F m ', ($x0 + ($border_bottom / 2)) * Mpdf::SCALE, ($this->h - ($y0 + $h - ($border_bottom / 2))) * Mpdf::SCALE)) . "\n";
16996 $this->writer->write(sprintf('%.3F %.3F m ', ($x0) * Mpdf::SCALE, ($this->h - ($y0)) * Mpdf::SCALE));
17015 $s .= (sprintf('%.3F %.3F m ', ($x0 + ($border_left / 2)) * Mpdf::SCALE, ($this->h - ($y0)) * Mpdf::SCALE)) . "\n";
17017 $s .= (sprintf('%.3F %.3F m ', ($x0 + ($border_left / 2)) * Mpdf::SCALE, ($this->h - ($y0 + ($border_left / 2))) * Mpdf::SCALE)) . "\n";
17057 $this->writer->write(sprintf('%.3F %.3F m ', ($x0 + $w) * Mpdf::SCALE, ($this->h - ($y0)) * Mpdf::SCALE));
17076 $s .= (sprintf('%.3F %.3F m ', ($x0 + $w - ($border_right / 2)) * Mpdf::SCALE, ($this->h - ($y0 + $h)) * Mpdf::SCALE)) . "\n";
17078 $s .= (sprintf('%.3F %.3F m ', ($x0 + $w - ($border_right / 2)) * Mpdf::SCALE, ($this->h - ($y0 + $h - ($border_right / 2))) * Mpdf::SCALE)) . "\n";
17177 $s .= sprintf('%.3F %.3F m ', ($bgx0 + $brbgTL_H ) * Mpdf::SCALE, ($this->h - $bgy0) * Mpdf::SCALE); // start point TL before the arc
17235 $shadow .= sprintf('0 %.3F m %.3F %.3F l ', $this->h * Mpdf::SCALE, $this->w * Mpdf::SCALE, $this->h * Mpdf::SCALE);
17308 $shadow .= sprintf('%.3F %.3F m ', ($p1x ) * Mpdf::SCALE, ($this->h - ($p1y )) * Mpdf::SCALE);
17806 $s .= sprintf('%.3F %.3F m ', $a0, $b0);
18082 if (preg_match('/<title>(.*?)<\/title>/si', $html, $m)) {
18083 $this->SetTitle($m[1]);
18109 if (preg_match('/<head.*charset=([^\'\"\s]*).*<\/head>/si', $html, $m)) {
18110 if (strtoupper($m[1]) != 'UTF-8') {
18111 $this->charset_in = strtoupper($m[1]);
18781 foreach ($tags as $t) {
18782 if (preg_match('/[\"\']([a-zA-Z0-9]{4})[\"\']\s*(on|off|\d*){0,1}/', $t, $m)) {
18783 if ($m[2] == 'off' || $m[2] === '0') {
18784 if (strpos($this->OTLtags['FFMinus'], $m[1]) === false) {
18785 $this->OTLtags['FFMinus'] .= ' ' . $m[1];
18787 $this->OTLtags['FFPlus'] = preg_replace('/' . $m[1] . '[\d]*/', '', $this->OTLtags['FFPlus']);
18789 if ($m[2] == 'on') {
18790 $m[2] = '1';
18792 if (strpos($this->OTLtags['FFPlus'], $m[1]) === false) {
18793 $this->OTLtags['FFPlus'] .= ' ' . $m[1] . $m[2];
18795 $this->OTLtags['FFMinus'] = str_replace($m[1], '', $this->OTLtags['FFMinus']);
19154 // so don't have to split OTLdata for each word
19178 foreach ($spaces[0] as $k => $m) {
19179 $offset = $m[1];
19210 // so don't have to split OTLdata for each word
20140 // Don't allocate more than Maximum required width - save rest in surplus
20159 // Don't allocate more than Maximum required width - save rest in surplus
20392 foreach ($c['textbuffer'] as $t) {
20393 $str .= $t[0] . ' ';
20483 for ($m = 0; $m < $numcols; $m++) { // columns
20484 $tc = &$cells[$k][$m];
20574 for ($m = 0; $m < $numcols; $m++) { // columns
20575 if (!isset($cells[$k][$m]) || $cells[$k][$m] == 0) {
20581 for ($m = 0; $m < $numcols; $m++) { // columns
20582 $c = &$cells[$k][$m];
20594 for ($m = 0; $m < $numcols; $m++) { // columns
20596 if (isset($cells[$k][$m]) && $cells[$k][$m] != 0) {
20597 $c = &$cells[$k][$m];
20604 if (isset($colH[$m])) {
20605 $colH[$m] += $useh;
20607 $colH[$m] = $useh;
20614 $extH = max($extH, $colH[$m]); // mPDF 6
21485 if (!isset($cells[($i + $crowsp)][$j + $cspi]['colspan']) || (isset($cells[($i + $crowsp)][$j + $cspi]['colspan']) && $cells[($i + $crowsp)][$j + $cspi]['colspan'] < 2)) { // don't overwrite bordering cells that span
21492 if ($ccolsp < 2) { // don't overwrite this cell if it spans
21499 if (!isset($cells[($i + $crowsp)][$j + $cspi]['colspan']) || (isset($cells[($i + $crowsp)][$j + $cspi]['colspan']) && $cells[($i + $crowsp)][$j + $cspi]['colspan'] < 2)) { // don't overwrite bordering cells that span
21506 if ($ccolsp < 2) { // don't overwrite this cell if it spans
21513 if ($ccolsp < 2) { // don't overwrite this cell if it spans
21520 if (!isset($cells[($i + $crowsp)][$j + $cspi]['colspan']) || (isset($cells[($i + $crowsp)][$j + $cspi]['colspan']) && $cells[($i + $crowsp)][$j + $cspi]['colspan'] < 2)) { // don't overwrite bordering cells that span
21529 if (!isset($cells[($i + $crowsp)][$j + $cspi]['colspan']) || (isset($cells[($i + $crowsp)][$j + $cspi]['colspan']) && $cells[($i + $crowsp)][$j + $cspi]['colspan'] < 2)) { // don't overwrite bordering cells that span
21573 if (!isset($cells[($i + $cspi)][$j + $ccolsp]['rowspan']) || (isset($cells[($i + $cspi)][$j + $ccolsp]['rowspan']) && $cells[($i + $cspi)][$j + $ccolsp]['rowspan'] < 2)) { // don't overwrite bordering cells that span
21579 if ($crowsp < 2) { // don't overwrite this cell if it spans
21586 if (!isset($cells[($i + $cspi)][$j + $ccolsp]['rowspan']) || (isset($cells[($i + $cspi)][$j + $ccolsp]['rowspan']) && $cells[($i + $cspi)][$j + $ccolsp]['rowspan'] < 2)) { // don't overwrite bordering cells that span
21592 if ($crowsp < 2) { // don't overwrite this cell if it spans
21599 if ($crowsp < 2) { // don't overwrite this cell if it spans
21605 if (!isset($cells[($i + $cspi)][$j + $ccolsp]['rowspan']) || (isset($cells[($i + $cspi)][$j + $ccolsp]['rowspan']) && $cells[($i + $cspi)][$j + $ccolsp]['rowspan'] < 2)) { // don't overwrite bordering cells that span
21612 if (!isset($cells[($i + $cspi)][$j + $ccolsp]['rowspan']) || (isset($cells[($i + $cspi)][$j + $ccolsp]['rowspan']) && $cells[($i + $cspi)][$j + $ccolsp]['rowspan'] < 2)) { // don't overwrite bordering cells that span
21847 $t = $cell['textbuffer'][$n][0];
21848 if (substr($t, 0, 19) == "\xbb\xa4\xactype=nestedtable") {
21849 $objattr = $this->_getObjAttr($t);
22137 for ($t = $startcol; $t < $numcols; $t++) {
22139 if ($table['colPg'][$t] > $splitpg) {
22251 for ($t = $startcol; $t < $numcols; $t++) {
22252 if ($table['colPg'][$t] == $splitpg) {
22253 $bw += $table['wc'][$t];
22255 if ($table['colPg'][$t] > $splitpg) {
22359 $startcol = $t;
22840 if (preg_match('/{colsum([0-9]*)[_]*}/', $cell['textbuffer'][0][0], $m)) {
22841 $rep = sprintf("%01." . intval($m[1]) . "f", $this->colsums[$j]);
22855 foreach ($cell['textbuffer'] as $k => $t) {
22856 if (preg_match('/{iteration ([a-zA-Z0-9_]+)}/', $t[0], $m)) {
22857 $vname = '__' . $m[1] . '_';
22863 $cell['textbuffer'][$k][0] = preg_replace('/{iteration ' . $m[1] . '}/', $this->$vname, $cell['textbuffer'][$k][0]);
22894 foreach ($cell['textbuffer'] as $t) {
22895 $str .= $t[0] . ' ';
23188 for ($t = $startcol; $t < $numcols; $t++) {
23189 if ($table['colPg'][$t] == $splitpg) {
23190 $bw += $table['wc'][$t];
23192 if ($table['colPg'][$t] > $splitpg) {
23344 $bmo = ['t' => $txt, 'l' => $level, 'y' => $y, 'p' => $this->page];
23451 // Don't add a page
23494 $btoc = ['t' => $txt, 'l' => $level, 'p' => $this->page, 'link' => $linkn, 'toc_id' => $toc_id];
23728 foreach ($this->tableOfContents->_toc as $key => $t) {
23729 if ($t['p'] >= $start_page && $t['p'] <= $end_page) {
23732 if ($t['p'] >= $target_page && $t['p'] < $start_page) {
23954 if (isset($this->kwt_Reference[$i]['t']) && $this->kwt_Reference[$i]['t'] == $txt) {
23962 $this->kwt_Reference[] = ['t' => $txt, 'op' => $this->page];
23967 if (isset($this->Reference[$i]['t']) && $this->Reference[$i]['t'] == $txt) {
23975 $this->Reference[] = ['t' => $txt, 'p' => [$this->page]];
24000 $this->Reference[] = ['t' => $txta . ' - see ' . $txtb, 'p' => []];
24045 $txt = $this->Reference[$i]['t'];
24098 if ($this->Reference[$i]['t']) {
24105 $txt = $this->Reference[$i]['t'];
24129 $marker = true; // Don't replace any more once the subentry marker has been found
24441 $t = $s['s'];
24442 if ($t == 'ACROFORM') {
24445 } elseif (preg_match('/BT \d+\.\d\d+ (\d+\.\d\d+) Td/', $t)) {
24447 } elseif (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) \d+\.\d\d+ [\-]{0,1}\d+\.\d\d+ re/', $t)) {
24449 } elseif (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) m/', $t)) {
24451 } elseif (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) l/', $t)) {
24453 } elseif (preg_match('/q \d+\.\d\d+ 0 0 \d+\.\d\d+ \d+\.\d\d+ (\d+\.\d\d+) cm \/(I|FO)\d+ Do Q/', $t)) {
24455 } elseif (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) \d+\.\d\d+ \d+\.\d\d+ \d+\.\d\d+ \d+\.\d\d+ c/', $t)) {
24538 $t = $s['s'];
24541 $t = $this->columnAdjustPregReplace('Td', $xadj, $yadj, '/BT (\d+\.\d\d+) (\d+\.\d\d+) Td/', $t);
24542 $t = $this->columnAdjustPregReplace('re', $xadj, $yadj, '/(\d+\.\d\d+) (\d+\.\d\d+) (\d+\.\d\d+) ([\-]{0,1}\d+\.\d\d+) re/', $t);
24543 $t = $this->columnAdjustPregReplace('l', $xadj, $yadj, '/(\d+\.\d\d+) (\d+\.\d\d+) l/', $t);
24544 $t = $this->columnAdjustPregReplace('img', $xadj, $yadj, '/q (\d+\.\d\d+) 0 0 (\d+\.\d\d+) (\d+\.\d\d+) (\d+\.\d\d+) cm \/(I|FO)/', $t);
24545 $t = $this->columnAdjustPregReplace('draw', $xadj, $yadj, '/(\d+\.\d\d+) (\d+\.\d\d+) m/', $t);
24546 $t = $this->columnAdjustPregReplace('bezier', $xadj, $yadj, '/(\d+\.\d\d+) (\d+\.\d\d+) (\d+\.\d\d+) (\d+\.\d\d+) (\d+\.\d\d+) (\d+\.\d\d+) c/', $t);
24548 $this->columnbuffer[$key]['s'] = $t;
24591 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $this->y0, 'p' => $v['p']];
24599 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $v['p'], 'link' => $v['link'], 'toc_id' => $v['toc_id']];
24700 $t = $s['s'];
24701 if ($t == 'ACROFORM' || (preg_match('/BT \d+\.\d\d+ (\d+\.\d\d+) Td/', $t)) || (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) \d+\.\d\d+ [\-]{0,1}\d+\.\d\d+ re/', $t)) ||
24702 (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) l/', $t)) ||
24703 (preg_match('/q \d+\.\d\d+ 0 0 \d+\.\d\d+ \d+\.\d\d+ (\d+\.\d\d+) cm \/(I|FO)\d+ Do Q/', $t)) ||
24704 (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) m/', $t)) ||
24705 (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) \d+\.\d\d+ \d+\.\d\d+ \d+\.\d\d+ \d+\.\d\d+ c/', $t))) {
24714 if ($t == 'ACROFORM') {
24761 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $this->y0, 'p' => $v['p']];
24769 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $v['p'], 'link' => $v['link'], 'toc_id' => $v['toc_id']];
24822 $t = $s['s'];
24823 if ($t === 'ACROFORM'
24824 || (preg_match('/BT \d+\.\d\d+ (\d+\.\d\d+) Td/', $t))
24825 || (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) \d+\.\d\d+ [\-]{0,1}\d+\.\d\d+ re/', $t))
24826 || (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) l/', $t))
24827 || (preg_match('/q \d+\.\d\d+ 0 0 \d+\.\d\d+ \d+\.\d\d+ (\d+\.\d\d+) cm \/(I|FO)\d+ Do Q/', $t))
24828 || (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) m/', $t))
24829 || (preg_match('/\d+\.\d\d+ (\d+\.\d\d+) \d+\.\d\d+ \d+\.\d\d+ \d+\.\d\d+ \d+\.\d\d+ c/', $t))) {
24857 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $v['y'], 'p' => $v['p']];
24864 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $v['p'], 'link' => $v['link'], 'toc_id' => $v['toc_id']];
24995 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $v['y'], 'p' => $v['p']];
25003 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $v['p'], 'link' => $v['link'], 'toc_id' => $v['toc_id']];
25118 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $v['y'], 'p' => $this->page];
25125 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $this->page, 'link' => $v['link'], 'toc_id' => $v['toc_id']];
25177 if ($this->Reference[$i]['t'] == $v['t']) {
25186 $this->Reference[] = ['t' => $v['t'], 'p' => [$v['op']]];
25195 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $v['y'], 'p' => $v['p']];
25203 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $v['p'], 'link' => $v['link'], 'toc_id' => $v['toc_id']];
25269 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $v['y'], 'p' => $this->page];
25281 if ($this->Reference[$i]['t'] == $v['t']) {
25290 $this->Reference[] = ['t' => $v['t'], 'p' => [$this->page]];
25299 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $this->page, 'link' => $v['link'], 'toc_id' => $v['toc_id']];
25354 $this->writer->write(sprintf('%.3F %.3F m %.3F %.3F %.3F %.3F %.3F %.3F c', ($x + $rx) * Mpdf::SCALE, ($h - $y) * Mpdf::SCALE, ($x + $rx) * Mpdf::SCALE, ($h - ($y - $ly)) * Mpdf::SCALE, ($x + $lx) * Mpdf::SCALE, ($h - ($y - $ry)) * Mpdf::SCALE, $x * Mpdf::SCALE, ($h - ($y - $ry)) * Mpdf::SCALE));
25451 } // Chunk doesn't contain RTL characters
25573 if (preg_match("/^(.*?)([\x{20000}-\x{2FFFF}]+)(.*)/u", $writehtml_e, $m)) {
25579 $writehtml_a[$writehtml_i] = $writehtml_e = $m[1];
25580 array_splice($writehtml_a, $writehtml_i + 1, 0, ['span style="font-family: ' . $font . '"', $m[2], '/span', $m[3]]);
25693 if (preg_match("/(.*?)(" . preg_quote($patt, '/') . ")(.*)/u", $writehtml_e, $m)) {
25694 $writehtml_e = $m[1];
25695 array_splice($writehtml_a, $writehtml_i + 1, 0, ['span style="font-family: ' . $font . '"', $m[2], '/span', $m[3]]);
25800 if (preg_match("/(.*?)(" . preg_quote($patt, '/') . ")(.*)/u", $writehtml_e, $m)) {
25801 $writehtml_e = $m[1];
25802 array_splice($writehtml_a, $writehtml_i + 1, 0, ['span style="font-family: ' . $font . '"', $m[2], '/span', $m[3]]);
25849 if (preg_match("/(.*?)(" . preg_quote($patt, '/') . ")(.*)/u", $writehtml_e, $m)) {
25850 $writehtml_e = $m[1];
25851 array_splice($writehtml_a, $writehtml_i + 1, 0, ['span style="font-family: ' . $font . '"', $m[2], '/span', $m[3]]);
25903 if (preg_match("/(.*?)(" . preg_quote($patt, '/') . ")(.*)/u", $writehtml_e, $m)) {
25904 $writehtml_e = $m[1];
25905 array_splice($writehtml_a, $writehtml_i + 1, 0, [$font, implode('|', $repl), '/' . $font, $m[3]]); // e.g. <tts>
25966 if (preg_match("/(.*?)(" . preg_quote($patt, '/') . ")(.*)/u", $writehtml_e, $m)) {
25967 $writehtml_e = $m[1];
25968 array_splice($writehtml_a, $writehtml_i + 1, 0, ['span style="font-family: ' . $font . '"', $m[2], '/span', $m[3]]);
26226 if ($v["t"]) {
26259 $this->SetFontSize($codestr_fontsize * 1.4 * Mpdf::SCALE, false); // don't write
26441 if ($v["t"]) {
26551 if ($v["t"]) {
26885 return sprintf('%.3F %.3F m', $a, $b);
26905 if (preg_match('/([\-]*[0-9\.]+)(deg|grad|rad)/i', $s, $m)) {
26907 $angle = $m[1] + 0;
26909 if (strtolower($m[2]) == 'deg') {
26911 } elseif (strtolower($m[2]) == 'grad') {
26913 } elseif (strtolower($m[2]) == 'rad') {
26969 preg_match_all("/(<annotation.*?>)/si", $html, $m);
26970 if (count($m[1])) {
26971 for ($i = 0; $i < count($m[1]); $i++) {
26972 $sub = preg_replace("/\n/si", "\xbb\xa4\xac", $m[1][$i]);
26973 $html = preg_replace('/' . preg_quote($m[1][$i], '/') . '/si', $sub, $html);
27009 $html = preg_replace("/[ \n\r]+<\/t(d|h)/", '</t\\1', $html);
27052 $html = preg_replace('/[\t]/', ' ', $html); // replace tabs by spaces
27070 // Fix self-closing tags which don't close themselves
27073 // Fix self-closing tags that don't include a space between the tag name and the closing slash
27080 $temp[2][$iterator] = preg_replace_callback("/^([^\n\t]*?)\t/m", [$this, 'tabs2spaces_callback'], $temp[2][$iterator]); // mPDF 5.7+
27081 $temp[2][$iterator] = preg_replace('/\t/', str_repeat(" ", $tabSpaces), $temp[2][$iterator]);
27093 $temp2[2][$iterator] = preg_replace('/\t/', str_repeat(" ", $tabSpaces), $temp2[2][$iterator]);
27161 preg_match("/xref\n0 (\d+)\n(.*?)\ntrailer/s", $pdf, $m);
27162 $xref_objid = $m[1];
27163 preg_match_all('/(\d{10}) (\d{5}) (f|n)/', $m[2], $x);
27169 preg_match("/<<\s*\/Type\s*\/Pages\s*\/Kids\s*\[(.*?)\]\s*\/Count/s", $pdf, $m);
27170 preg_match_all("/(\d+) 0 R /s", $m[1], $o);
27175 preg_match("/" . ($obj + 1) . " 0 obj\n<<\s*\/Filter\s*\/FlateDecode\s*\/Length (\d+)>>\nstream\n(.*?)\nendstream\n/s", $pdf, $m);
27177 preg_match("/" . ($obj + 1) . " 0 obj\n<<\s*\/Length (\d+)>>\nstream\n(.*?)\nendstream\n/s", $pdf, $m);
27180 $s = $m[2];
27185 $oldlen = $m[1];
27217 $pdf = str_replace($m[0], $newstr, $pdf);
27235 preg_match("/startxref\n(\d+)\n%%EOF/s", $pdf, $m);
27236 $startxref = $m[1];