Lines Matching refs:k

1924 				foreach ($this->extgstates[$i]['parms'] as $k => $v) {
1925 if (!isset($parms[$k]) || $parms[$k] != $v) {
3337 list($name, $c, $m, $y, $k) = preg_split("/\t/", $sc);
3341 $k = intval($k);
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];
3369 $out = sprintf('%.3F %.3F %.3F %.3F k', ord($col[1]) / 100, ord($col[2]) / 100, ord($col[3]) / 100, ord($col[4]) / 100);
3375 $out = preg_replace('/\s(rg|g|k)/', '', $out);
6554 foreach ($content as $k => $chunk) {
6555 $this->restoreFont($font[$k], false);
6556 if (!isset($this->objectbuffer[$k]) || (isset($this->objectbuffer[$k]) && !$this->objectbuffer[$k])) {
6562 $this->otl->removeChar($chunk, $cOTLdata[$k], "\xc2\xad");
6563 $this->otl->replaceSpace($chunk, $cOTLdata[$k]);
6564 $content[$k] = $chunk;
6566 $content[$k] = $chunk = str_replace("\xc2\xad", '', $chunk);
6567 $content[$k] = $chunk = str_replace(chr(194) . chr(160), chr(32), $chunk);
6570 $content[$k] = $chunk = str_replace(chr(173), '', $chunk);
6571 $content[$k] = $chunk = str_replace(chr(160), chr(32), $chunk);
6573 $contentWidth += $this->GetStringWidth($chunk, true, (isset($cOTLdata[$k]) ? $cOTLdata[$k] : false), $this->textvar) * Mpdf::SCALE;
6574 } elseif (isset($this->objectbuffer[$k]) && $this->objectbuffer[$k]) {
6576 if ($this->objectbuffer[$k]['type'] == 'image' && isset($this->objectbuffer[$k]['listmarker']) && $this->objectbuffer[$k]['listmarker'] && $this->objectbuffer[$k]['listmarkerposition'] == 'outside') {
6579 $contentWidth += $this->objectbuffer[$k]['OUTER-WIDTH'] * Mpdf::SCALE;
6746 foreach ($content as $k => $chunk) {
6747 if (!isset($this->objectbuffer[$k]) || (isset($this->objectbuffer[$k]) && !$this->objectbuffer[$k])) {
6752 $this->restoreFont($font[$k], false);
6754 if (isset($cOTLdata[$k]['group']) && $cOTLdata[$k]['group']) {
6755 $nb_marks = substr_count($cOTLdata[$k]['group'], 'M');
6764 if ($this->objectbuffer[$k]['type'] == 'dottab') {
6765 $dottab = $this->objectbuffer[$k]['outdent'];
6784 foreach ($chunkorder as $aord => $k) {
6786 $this->restoreFont($font[$k], false);
6896 foreach ($chunkorder as $aord => $k) { // mPDF 5.7
6898 if (isset($this->objectbuffer[$k]) && $this->objectbuffer[$k]) {
6899 $xadj = $this->x - $this->objectbuffer[$k]['OUTER-X'];
6900 $this->objectbuffer[$k]['OUTER-X'] += $xadj;
6901 $this->objectbuffer[$k]['BORDER-X'] += $xadj;
6902 $this->objectbuffer[$k]['INNER-X'] += $xadj;
6904 if ($this->objectbuffer[$k]['type'] == 'listmarker') {
6905 $this->objectbuffer[$k]['lineBox'] = $lineBox[-1]; // Block element details for glyph-origin
6907 $yadj = $this->y - $this->objectbuffer[$k]['OUTER-Y'];
6908 if ($this->objectbuffer[$k]['type'] == 'dottab') { // mPDF 6 DOTTAB
6909 $this->objectbuffer[$k]['lineBox'] = $lineBox[$k]; // element details for glyph-origin
6911 if ($this->objectbuffer[$k]['type'] != 'dottab') { // mPDF 6 DOTTAB
6912 $yadj += $lineBox[$k]['top'];
6914 $this->objectbuffer[$k]['OUTER-Y'] += $yadj;
6915 $this->objectbuffer[$k]['BORDER-Y'] += $yadj;
6916 $this->objectbuffer[$k]['INNER-Y'] += $yadj;
6919 $this->restoreFont($font[$k]); // mPDF 5.7
6946 if (strpos($contentB[$k], 'L') !== false && isset($this->spanborddet['L'])) {
6949 if (strpos($contentB[$k], 'L') === false) {
6952 if (strpos($contentB[$k], 'R') === false) {
6970 if (isset($this->objectbuffer[$k])) {
6971 if ($this->objectbuffer[$k]['type'] == 'dottab') {
6972 $this->objectbuffer[$k]['OUTER-WIDTH'] +=$empty;
6973 $this->objectbuffer[$k]['OUTER-WIDTH'] +=$this->objectbuffer[$k]['outdent'];
6976 if ($this->objectbuffer[$k]['type'] == 'image' && isset($this->objectbuffer[$k]['listmarker']) && $this->objectbuffer[$k]['listmarker'] && $this->objectbuffer[$k]['listmarkerposition'] == 'outside') {
6979 $stringWidth = $this->objectbuffer[$k]['OUTER-WIDTH'];
6990 $this->Cell($stringWidth, $stackHeight, $chunk, '', 0, '', $fill, $this->HREF, $currentx, 0, 0, 'M', $fill, true, (isset($cOTLdata[$aord]) ? $cOTLdata[$aord] : false), $this->textvar, (isset($lineBox[$k]) ? $lineBox[$k] : false)); // mPDF 5.7.1
6991 $this->Cell($this->GetStringWidth($hanger), $stackHeight, $hanger, '', 1, '', $fill, $this->HREF, $currentx, 0, 0, 'M', $fill, true, (isset($cOTLdata[$aord]) ? $cOTLdata[$aord] : false), $this->textvar, (isset($lineBox[$k]) ? $lineBox[$k] : false)); // mPDF 5.7.1
6993 $this->Cell($stringWidth, $stackHeight, $chunk, '', 1, '', $fill, $this->HREF, $currentx, 0, 0, 'M', $fill, true, (isset($cOTLdata[$aord]) ? $cOTLdata[$aord] : false), $this->textvar, (isset($lineBox[$k]) ? $lineBox[$k] : false)); // mPDF 5.7.1
6996 $this->Cell($stringWidth, $stackHeight, $chunk, '', 0, '', $fill, $this->HREF, 0, 0, 0, 'M', $fill, true, (isset($cOTLdata[$aord]) ? $cOTLdata[$aord] : false), $this->textvar, (isset($lineBox[$k]) ? $lineBox[$k] : false)); // first or middle part // mPDF 5.7.1
7001 if (strpos($contentB[$k], 'R') !== false && $aord != $arraysize - 1) {
7102 $k = $this->shrin_k;
7104 $k = 1;
7186 $this->SetLineWidth($objattr['linewidth'] / $k);
7187 $this->y += ($objattr['linewidth'] / 2) + $objattr['margin_top'] / $k;
7432 $k
7492 $k,
7522 $this->directWrite->CircularText($objattr['INNER-X'] + $objattr['INNER-WIDTH'] / 2, $objattr['INNER-Y'] + $objattr['INNER-HEIGHT'] / 2, $objattr['r'] / $k, $objattr['top-text'], 'top', $objattr['fontfamily'], $objattr['fontsize'] / $k, $objattr['fontstyle'], $objattr['space-width'], $objattr['char-width'], (isset($objattr['divider']) ? $objattr['divider'] : ''));
7525 $this->directWrite->CircularText($objattr['INNER-X'] + $objattr['INNER-WIDTH'] / 2, $objattr['INNER-Y'] + $objattr['INNER-HEIGHT'] / 2, $objattr['r'] / $k, $objattr['bottom-text'], 'bottom', $objattr['fontfamily'], $objattr['fontsize'] / $k, $objattr['fontstyle'], $objattr['space-width'], $objattr['char-width'], (isset($objattr['divider']) ? $objattr['divider'] : ''));
7624 $this->form->print_ob_text($objattr, $w, $h, $texto, $rtlalign, $k, $blockdir);
7629 $this->form->print_ob_textarea($objattr, $w, $h, $texto, $rtlalign, $k, $blockdir);
7634 $this->form->print_ob_select($objattr, $w, $h, $texto, $rtlalign, $k, $blockdir);
7640 $this->form->print_ob_imageinput($objattr, $w, $h, $texto, $rtlalign, $k, $blockdir, $is_table);
7645 $this->form->print_ob_button($objattr, $w, $h, $texto, $rtlalign, $k, $blockdir);
7650 $this->form->print_ob_checkbox($objattr, $w, $h, $texto, $rtlalign, $k, $blockdir, $x, $y);
7654 $this->form->print_ob_radio($objattr, $w, $h, $texto, $rtlalign, $k, $blockdir, $x, $y);
7935 foreach ($this->objectbuffer as $k => $objattr) { // mPDF 6 DOTTAB
8283 foreach ($content as $k => $chunk) {
8284 if (isset($this->objectbuffer[$k]) && $this->objectbuffer[$k]) {
8286 if ($this->objectbuffer[$k]['type'] == 'image' && isset($this->objectbuffer[$k]['listmarker']) && $this->objectbuffer[$k]['listmarker']) {
8287 if ($this->objectbuffer[$k]['listmarkerposition'] != 'outside') {
8288 $contentWidth += $this->objectbuffer[$k]['OUTER-WIDTH'] * Mpdf::SCALE;
8291 $contentWidth += $this->objectbuffer[$k]['OUTER-WIDTH'] * Mpdf::SCALE;
8293 } elseif (!isset($this->objectbuffer[$k]) || (isset($this->objectbuffer[$k]) && !$this->objectbuffer[$k])) {
8294 $this->restoreFont($font[$k], false);
8295 if ($this->checkCJK && $k == count($content) - 1 && $CJKoverflow && $align == 'J' && $this->allowCJKoverflow && $this->CJKforceend) {
8299 $content[$k] = $chunk = mb_substr($chunk, 0, mb_strlen($chunk, $this->mb_enc) - 1, $this->mb_enc);
8306 $this->otl->removeChar($chunk, $cOTLdata[$k], "\xc2\xad");
8307 $this->otl->replaceSpace($chunk, $cOTLdata[$k]); // NBSP -> space
8311 $content[$k] = $chunk;
8313 $content[$k] = $chunk = str_replace("\xc2\xad", '', $chunk);
8314 $content[$k] = $chunk = str_replace(chr(194) . chr(160), chr(32), $chunk);
8317 $content[$k] = $chunk = str_replace(chr(173), '', $chunk);
8318 $content[$k] = $chunk = str_replace(chr(160), chr(32), $chunk);
8321 $contentWidth += $this->GetStringWidth($chunk, true, (isset($cOTLdata[$k]) ? $cOTLdata[$k] : false), $this->textvar) * Mpdf::SCALE; // mPDF 5.7.1
8323 if (isset($this->spanborddet['L']['w']) && strpos($contentB[$k], 'L') !== false) {
8326 if (isset($this->spanborddet['R']['w']) && strpos($contentB[$k], 'R') !== false) {
8358 foreach ($chunkorder as $aord => $k) {
8360 $this->restoreFont($font[$k], false);
8399 foreach ($chunkorder as $aord => $k) {
8401 if (!isset($this->objectbuffer[$k]) || (isset($this->objectbuffer[$k]) && !$this->objectbuffer[$k])) {
8527 foreach ($chunkorder as $aord => $k) { // mPDF 5.7
8531 if (isset($this->objectbuffer[$k]) && $this->objectbuffer[$k]) {
8532 $xadj = $this->x - $this->objectbuffer[$k]['OUTER-X'];
8533 $this->objectbuffer[$k]['OUTER-X'] += $xadj;
8534 $this->objectbuffer[$k]['BORDER-X'] += $xadj;
8535 $this->objectbuffer[$k]['INNER-X'] += $xadj;
8537 if ($this->objectbuffer[$k]['type'] == 'listmarker') {
8538 $this->objectbuffer[$k]['lineBox'] = $lineBox[-1]; // Block element details for glyph-origin
8540 $yadj = $this->y - $this->objectbuffer[$k]['OUTER-Y'];
8541 if ($this->objectbuffer[$k]['type'] == 'dottab') { // mPDF 6 DOTTAB
8542 $this->objectbuffer[$k]['lineBox'] = $lineBox[$k]; // element details for glyph-origin
8544 if ($this->objectbuffer[$k]['type'] != 'dottab') { // mPDF 6 DOTTAB
8545 $yadj += $lineBox[$k]['top'];
8547 $this->objectbuffer[$k]['OUTER-Y'] += $yadj;
8548 $this->objectbuffer[$k]['BORDER-Y'] += $yadj;
8549 $this->objectbuffer[$k]['INNER-Y'] += $yadj;
8552 $this->restoreFont($font[$k]); // mPDF 5.7
8572 if (strpos($contentB[$k], 'L') !== false) {
8575 if (strpos($contentB[$k], 'L') === false) {
8578 if (strpos($contentB[$k], 'R') === false) {
8598 if (isset($this->objectbuffer[$k])) {
8600 if ($this->objectbuffer[$k]['type'] == 'image' && isset($this->objectbuffer[$k]['listmarker']) && $this->objectbuffer[$k]['listmarker'] && $this->objectbuffer[$k]['listmarkerposition'] == 'outside') {
8603 $stringWidth = $this->objectbuffer[$k]['OUTER-WIDTH'];
8615 $this->Cell($stringWidth, $stackHeight, $chunk, '', 0, '', $fill, $this->HREF, $currentx, 0, 0, 'M', $fill, true, (isset($cOTLdata[$aord]) ? $cOTLdata[$aord] : false), $this->textvar, (isset($lineBox[$k]) ? $lineBox[$k] : false));
8616 $this->Cell($this->GetStringWidth($hanger), $stackHeight, $hanger, '', 1, '', $fill, $this->HREF, $currentx, 0, 0, 'M', $fill, true, (isset($cOTLdata[$aord]) ? $cOTLdata[$aord] : false), $this->textvar, (isset($lineBox[$k]) ? $lineBox[$k] : false));
8618 $this->Cell($stringWidth, $stackHeight, $chunk, '', 1, '', $fill, $this->HREF, $currentx, 0, 0, 'M', $fill, true, (isset($cOTLdata[$aord]) ? $cOTLdata[$aord] : false), $this->textvar, (isset($lineBox[$k]) ? $lineBox[$k] : false)); // mono-style line or last part (skips line)
8621 $this->Cell($stringWidth, $stackHeight, $chunk, '', 0, '', $fill, $this->HREF, 0, 0, 0, 'M', $fill, true, (isset($cOTLdata[$aord]) ? $cOTLdata[$aord] : false), $this->textvar, (isset($lineBox[$k]) ? $lineBox[$k] : false)); // first or middle part
8625 if (strpos($contentB[$k], 'R') !== false && $aord != $arraysize - 1) {
8863 // divide by k to get user units
8869 // divide by k to get user units (mm)
9088 $k = $this->shrin_k;
9090 $k = 1;
9097 $w = $objattr['width'] / $k;
9101 $h = abs($objattr['height'] / $k);
9110 $extraWidth = ($objattr['border_left']['w'] + $objattr['border_right']['w'] + $objattr['margin_left'] + $objattr['margin_right']) / $k;
9111 $extraHeight = ($objattr['border_top']['w'] + $objattr['border_bottom']['w'] + $objattr['margin_top'] + $objattr['margin_bottom']) / $k;
9114 $extraWidth += ($objattr['padding_left'] + $objattr['padding_right']) / $k;
9115 $extraHeight += ($objattr['padding_top'] + $objattr['padding_bottom']) / $k;
9201 $objattr['BORDER-WIDTH'] = $img_w + $objattr['padding_left'] / $k + $objattr['padding_right'] / $k + (($objattr['border_left']['w'] / $k + $objattr['border_right']['w'] / $k) / 2);
9202 $objattr['BORDER-HEIGHT'] = $img_h + $objattr['padding_top'] / $k + $objattr['padding_bottom'] / $k + (($objattr['border_top']['w'] / $k + $objattr['border_bottom']['w'] / $k) / 2);
9203 $objattr['BORDER-X'] = $x + $objattr['margin_left'] / $k + (($objattr['border_left']['w'] / $k) / 2);
9204 $objattr['BORDER-Y'] = $y + $objattr['margin_top'] / $k + (($objattr['border_top']['w'] / $k) / 2);
9207 $objattr['INNER-X'] = $x + $objattr['padding_left'] / $k + $objattr['margin_left'] / $k + ($objattr['border_left']['w'] / $k);
9208 $objattr['INNER-Y'] = $y + $objattr['padding_top'] / $k + $objattr['margin_top'] / $k + ($objattr['border_top']['w'] / $k);
9215 $objattr['BORDER-WIDTH'] = $img_w + (($objattr['border_left']['w'] / $k + $objattr['border_right']['w'] / $k) / 2);
9216 $objattr['BORDER-HEIGHT'] = $img_h + (($objattr['border_top']['w'] / $k + $objattr['border_bottom']['w'] / $k) / 2);
9217 $objattr['BORDER-X'] = $x + $objattr['margin_left'] / $k + (($objattr['border_left']['w'] / $k) / 2);
9218 $objattr['BORDER-Y'] = $y + $objattr['margin_top'] / $k + (($objattr['border_top']['w'] / $k) / 2);
9221 $objattr['INNER-X'] = $x + $objattr['margin_left'] / $k + ($objattr['border_left']['w'] / $k);
9222 $objattr['INNER-Y'] = $y + $objattr['margin_top'] / $k + ($objattr['border_top']['w'] / $k);
9229 $objattr['BORDER-WIDTH'] = $b_w + $objattr['padding_left'] / $k + $objattr['padding_right'] / $k + (($objattr['border_left']['w'] / $k + $objattr['border_right']['w'] / $k) / 2);
9230 $objattr['BORDER-HEIGHT'] = $b_h + $objattr['padding_top'] / $k + $objattr['padding_bottom'] / $k + (($objattr['border_top']['w'] / $k + $objattr['border_bottom']['w'] / $k) / 2);
9231 $objattr['BORDER-X'] = $x + $objattr['margin_left'] / $k + (($objattr['border_left']['w'] / $k) / 2);
9232 $objattr['BORDER-Y'] = $y + $objattr['margin_top'] / $k + (($objattr['border_top']['w'] / $k) / 2);
9233 $objattr['INNER-X'] = $x + $objattr['padding_left'] / $k + $objattr['margin_left'] / $k + ($objattr['border_left']['w'] / $k);
9234 $objattr['INNER-Y'] = $y + $objattr['padding_top'] / $k + $objattr['margin_top'] / $k + ($objattr['border_top']['w'] / $k);
9276 $objattr['fontsize'] /= $k;
9279 $objattr['linewidth'] /= $k;
9953 foreach ($font['subsetfontids'] as $k => $fid) {
9987 foreach ($sortarr as $i => $k) {
11023 $k = $this->shrin_k;
11025 $k = 1;
11034 return (((float) $lh) / $k); // convert to number
11167 foreach ($content as $k => $chunk) {
11168 if (isset($this->objectbuffer[$k]) && $this->objectbuffer[$k]['type'] == 'listmarker') {
11169 $ypos[$k] = $ypos[-1];
11172 if ($ypos[$k]['boxtop'] > $topy) {
11173 $topy = $ypos[$k]['boxtop'];
11175 if ($ypos[$k]['boxbottom'] < $bottomy) {
11176 $bottomy = $ypos[$k]['boxbottom'];
11179 if ($ypos[$k]['exttop'] > $topy) {
11180 $topy = $ypos[$k]['exttop'];
11182 if ($ypos[$k]['extbottom'] < $bottomy) {
11183 $bottomy = $ypos[$k]['extbottom'];
11186 } elseif (isset($this->objectbuffer[$k]) && $this->objectbuffer[$k]['type'] == 'dottab') { // mPDF 6 DOTTAB
11187 $fontsize = $font[$k]['size'];
11188 $fontdesc = $font[$k]['curr']['desc'];
11190 $ypos[$k] = $this->_setLineYpos($fontsize, $fontdesc, $lh, $ypos[-1]); // Lineheight=1 fixed
11191 } elseif (isset($this->objectbuffer[$k])) {
11192 $oh = $this->objectbuffer[$k]['OUTER-HEIGHT'];
11193 $va = $this->objectbuffer[$k]['vertical-align'];
11225 } elseif ($content[$k] || $content[$k] === '0') {
11227 $fontsize = $font[$k]['size'];
11228 $fontdesc = $font[$k]['curr']['desc'];
11230 $ypos[$k] = $this->_setLineYpos($fontsize, $fontdesc, $CSSlineheight, $ypos[-1]);
11232 if (isset($font[$k]['textparam']['text-baseline']) && $font[$k]['textparam']['text-baseline'] != 0) {
11233 $ypos[$k]['baseline-shift'] = $font[$k]['textparam']['text-baseline'];
11238 // $ypos[$k] compared to $ypos[-1] or $ypos[$k-1] using $dominant_baseline and $baseline_table
11242 if ($ypos[$k]['boxtop'] > $topy) {
11243 $topy = $ypos[$k]['boxtop'];
11245 if ($ypos[$k]['boxbottom'] < $bottomy) {
11246 $bottomy = $ypos[$k]['boxbottom'];
11249 if (($ypos[$k]['boxtop'] + $ypos[$k]['baseline-shift']) > $topy) {
11250 $topy = $ypos[$k]['boxtop'] + $ypos[$k]['baseline-shift'];
11252 if (($ypos[$k]['boxbottom'] + $ypos[$k]['baseline-shift']) < $bottomy) {
11253 $bottomy = $ypos[$k]['boxbottom'] + $ypos[$k]['baseline-shift'];
11258 if ($ypos[$k]['exttop'] > $topy) {
11259 $topy = $ypos[$k]['exttop'];
11261 if ($ypos[$k]['extbottom'] < $bottomy) {
11262 $bottomy = $ypos[$k]['extbottom'];
11265 if (($ypos[$k]['exttop'] + $ypos[$k]['baseline-shift']) > $topy) {
11266 $topy = $ypos[$k]['exttop'] + $ypos[$k]['baseline-shift'];
11268 if (($ypos[$k]['extbottom'] + $ypos[$k]['baseline-shift']) < $bottomy) {
11269 $bottomy = $ypos[$k]['extbottom'] + $ypos[$k]['baseline-shift'];
11275 if (isset($font[$k]['bord']) && $font[$k]['bord']) {
11276 $bordfontsize = $font[$k]['textparam']['bord-decoration']['fontsize'] / $shrin_k;
11277 $bordfontkey = $font[$k]['textparam']['bord-decoration']['fontkey'];
11278 if ($bordfontkey != $fontkey || $bordfontsize != $fontsize || isset($font[$k]['textparam']['bord-decoration']['baseline'])) {
11280 $bordypos[$k] = $this->_setLineYpos($bordfontsize, $bordfontdesc, $CSSlineheight, $ypos[-1]);
11281 if (isset($font[$k]['textparam']['bord-decoration']['baseline']) && $font[$k]['textparam']['bord-decoration']['baseline'] != 0) {
11282 $bordypos[$k]['baseline-shift'] = $font[$k]['textparam']['bord-decoration']['baseline'] / $shrin_k;
11287 if (isset($font[$k]['spanbgcolor']) && $font[$k]['spanbgcolor']) {
11288 $bgfontsize = $font[$k]['textparam']['bg-decoration']['fontsize'] / $shrin_k;
11289 $bgfontkey = $font[$k]['textparam']['bg-decoration']['fontkey'];
11290 if ($bgfontkey != $fontkey || $bgfontsize != $fontsize || isset($font[$k]['textparam']['bg-decoration']['baseline'])) {
11292 $bgypos[$k] = $this->_setLineYpos($bgfontsize, $bgfontdesc, $CSSlineheight, $ypos[-1]);
11293 if (isset($font[$k]['textparam']['bg-decoration']['baseline']) && $font[$k]['textparam']['bg-decoration']['baseline'] != 0) {
11294 $bgypos[$k]['baseline-shift'] = $font[$k]['textparam']['bg-decoration']['baseline'] / $shrin_k;
11355 foreach ($content as $k => $chunk) {
11356 if (isset($this->objectbuffer[$k])) {
11357 $oh = $this->objectbuffer[$k]['OUTER-HEIGHT'];
11359 if ($this->objectbuffer[$k]['type'] == 'listmarker') {
11361 } elseif ($this->objectbuffer[$k]['type'] == 'dottab') { // mPDF 6 DOTTAB
11362 $oh = $font[$k]['size']; // == $this->objectbuffer[$k]['fontsize']/Mpdf::SCALE;
11363 $lineBox[$k]['boxtop'] = $topy - $ypos[$k]['boxtop'];
11364 $lineBox[$k]['boxbottom'] = $topy - $ypos[$k]['boxbottom'];
11365 $lineBox[$k]['glyphYorigin'] = $topy - $ypos[$k]['glyphYorigin'];
11366 $lineBox[$k]['baseline-shift'] = 0;
11369 $va = $this->objectbuffer[$k]['vertical-align']; // = $objattr['vertical-align'] = set as M,T,B,S
11372 $lineBox[$k]['top'] = $lineBox[-1]['glyphYorigin'] - $oh;
11374 $lineBox[$k]['top'] = $midpoint - $oh / 2;
11376 $lineBox[$k]['top'] = $lineBox[-1]['boxtop'];
11378 $lineBox[$k]['top'] = $lineBox[-1]['boxbottom'] - $oh;
11380 $lineBox[$k]['top'] = 0;
11382 $lineBox[$k]['top'] = $stackHeight - $oh;
11384 } elseif ($content[$k] || $content[$k] === '0') {
11385 $lineBox[$k]['boxtop'] = $topy - $ypos[$k]['boxtop'];
11386 $lineBox[$k]['boxbottom'] = $topy - $ypos[$k]['boxbottom'];
11387 // $lineBox[$k]['exttop'] = $topy - $ypos[$k]['exttop'];
11388 // $lineBox[$k]['extbottom'] = $topy - $ypos[$k]['extbottom'];
11389 $lineBox[$k]['glyphYorigin'] = $topy - $ypos[$k]['glyphYorigin'];
11390 $lineBox[$k]['baseline-shift'] = $ypos[$k]['baseline-shift'];
11391 if (isset($bordypos[$k]['boxtop'])) {
11392 $lineBox[$k]['border-boxtop'] = $topy - $bordypos[$k]['boxtop'];
11393 $lineBox[$k]['border-boxbottom'] = $topy - $bordypos[$k]['boxbottom'];
11394 $lineBox[$k]['border-baseline-shift'] = $bordypos[$k]['baseline-shift'];
11396 if (isset($bgypos[$k]['boxtop'])) {
11397 $lineBox[$k]['background-boxtop'] = $topy - $bgypos[$k]['boxtop'];
11398 $lineBox[$k]['background-boxbottom'] = $topy - $bgypos[$k]['boxbottom'];
11399 $lineBox[$k]['background-baseline-shift'] = $bgypos[$k]['baseline-shift'];
11836 foreach ($tablehf['textbuffer'] as $k => $t) {
11844 $tablehf['textbuffer'][$k][0] = preg_replace('/{iteration ' . $m[1] . '}/', $this->$vname, $tablehf['textbuffer'][$k][0]);
13868 foreach ($this->internallink as $k => $v) {
13870 if (strpos($k, "#") !== false) {
13882 while (array_key_exists($sharp . $k, $this->internallink)) {
13883 $internallink = $this->internallink[$sharp . $k];
15398 // divide by k to get user units
16611 function _setBorderLine($b, $k = 1)
16613 $this->SetLineWidth($b['w'] / $k);
17929 $k = $this->shrin_k;
17931 $k = 1;
17942 $this->_setBorderLine($tbd, $k);
17956 $this->_setBorderLine($tbd, $k);
17970 $this->_setBorderLine($tbd, $k);
17984 $this->_setBorderLine($tbd, $k);
18219 foreach ($arrayaux as $k => $v) {
18221 switch ($k) {
18368 }//end of switch($k)
18373 switch ($k) {
18436 switch ($k) {
18448 switch ($k) {
18476 }//end of switch($k)
18481 switch ($k) {
18560 }//end of switch($k)
18565 switch ($k) {
18898 }//end of switch($k)
19142 foreach ($letters as $k => $letter) {
19145 if (preg_match("/[" . $this->CJKleading . "]/u", $letter) && $k > 0) {
19146 $letter = $letters[$k - 1] . $letter;
19148 if (preg_match("/[" . $this->CJKfollowing . "]/u", $letter) && $k < (count($letters) - 1)) {
19149 $letter = $letter . $letters[$k + 1];
19155 if ($k == 0) {
19158 if ($k == (count($letters) - 1)) {
19177 $k = -1; // Added so that if no spaces found, "last word" later is calculated for the one and only word
19178 foreach ($spaces[0] as $k => $m) {
19184 if (isset($wordXAdvance[$k])) {
19185 $wordXAdvance[$k] += $chunk[18]['GPOSinfo'][$n]['XAdvanceL'];
19187 $wordXAdvance[$k] = $chunk[18]['GPOSinfo'][$n]['XAdvanceL'];
19194 $k++; // last word
19197 if (isset($wordXAdvance[$k])) {
19198 $wordXAdvance[$k] += $chunk[18]['GPOSinfo'][$n]['XAdvanceL'];
19200 $wordXAdvance[$k] = $chunk[18]['GPOSinfo'][$n]['XAdvanceL'];
19207 foreach ($words as $k => $word) {
19211 if (isset($wordXAdvance[$k])) {
19212 $wordwidth += ($wordXAdvance[$k] * 1000 / $this->CurrentFont['unitsPerEm']) * ($this->FontSize / 1000);
19214 if ($k == 0) {
19217 if ($k == (count($words) - 1)) {
19224 } elseif (count($words) > 1 && $k == 0 && substr($chunk[0], 0, 1) != ' ') {
19232 } elseif (count($words) > 1 && ($k != (count($words) - 1) || substr($chunk[0], -1, 1) == ' ')) {
19287 function shrinkTable(&$table, $k)
19289 $table['border_spacing_H'] /= $k;
19290 $table['border_spacing_V'] /= $k;
19292 $table['padding']['T'] /= $k;
19293 $table['padding']['R'] /= $k;
19294 $table['padding']['B'] /= $k;
19295 $table['padding']['L'] /= $k;
19297 $table['margin']['T'] /= $k;
19298 $table['margin']['R'] /= $k;
19299 $table['margin']['B'] /= $k;
19300 $table['margin']['L'] /= $k;
19302 $table['border_details']['T']['w'] /= $k;
19303 $table['border_details']['R']['w'] /= $k;
19304 $table['border_details']['B']['w'] /= $k;
19305 $table['border_details']['L']['w'] /= $k;
19308 $table['max_cell_border_width']['T'] /= $k;
19311 $table['max_cell_border_width']['R'] /= $k;
19314 $table['max_cell_border_width']['B'] /= $k;
19317 $table['max_cell_border_width']['L'] /= $k;
19321 $table['simple']['border_details']['T']['w'] /= $k;
19322 $table['simple']['border_details']['R']['w'] /= $k;
19323 $table['simple']['border_details']['B']['w'] /= $k;
19324 $table['simple']['border_details']['L']['w'] /= $k;
19327 $table['miw'] /= $k;
19328 $table['maw'] /= $k;
19335 $table['wc'][$j]['miw'] /= $k;
19336 $table['wc'][$j]['maw'] /= $k;
19339 $table['decimal_align'][$j]['maxs0'] /= $k;
19343 $table['decimal_align'][$j]['maxs1'] /= $k;
19347 $table['wc'][$j]['absmiw'] /= $k;
19362 $cell['border_details']['T']['w'] /= $k;
19363 $cell['border_details']['R']['w'] /= $k;
19364 $cell['border_details']['B']['w'] /= $k;
19365 $cell['border_details']['L']['w'] /= $k;
19366 $cell['border_details']['mbw']['TL'] /= $k;
19367 $cell['border_details']['mbw']['TR'] /= $k;
19368 $cell['border_details']['mbw']['BL'] /= $k;
19369 $cell['border_details']['mbw']['BR'] /= $k;
19370 $cell['border_details']['mbw']['LT'] /= $k;
19371 $cell['border_details']['mbw']['LB'] /= $k;
19372 $cell['border_details']['mbw']['RT'] /= $k;
19373 $cell['border_details']['mbw']['RB'] /= $k;
19379 $c['border_details']['T']['w'] /= $k;
19380 $c['border_details']['R']['w'] /= $k;
19381 $c['border_details']['B']['w'] /= $k;
19382 $c['border_details']['L']['w'] /= $k;
19383 $c['border_details']['mbw']['TL'] /= $k;
19384 $c['border_details']['mbw']['TR'] /= $k;
19385 $c['border_details']['mbw']['BL'] /= $k;
19386 $c['border_details']['mbw']['BR'] /= $k;
19387 $c['border_details']['mbw']['LT'] /= $k;
19388 $c['border_details']['mbw']['LB'] /= $k;
19389 $c['border_details']['mbw']['RT'] /= $k;
19390 $c['border_details']['mbw']['RB'] /= $k;
19394 $c['padding']['T'] /= $k;
19395 $c['padding']['R'] /= $k;
19396 $c['padding']['B'] /= $k;
19397 $c['padding']['L'] /= $k;
19399 $c['maxs'] = isset($c['maxs']) ? $c['maxs'] /= $k : null;
19400 $c['w'] = isset($c['w']) ? $c['w'] /= $k : null;
19402 $c['s'] = isset($c['s']) ? $c['s'] /= $k : 0;
19403 $c['h'] = isset($c['h']) ? $c['h'] /= $k : null;
19405 $c['miw'] = isset($c['miw']) ? $c['miw'] /= $k : 0;
19406 $c['maw'] = isset($c['maw']) ? $c['maw'] /= $k : 0;
19408 $c['absmiw'] = isset($c['absmiw']) ? $c['absmiw'] /= $k : null;
19410 $c['nestedmaw'] = isset($c['nestedmaw']) ? $c['nestedmaw'] /= $k : null;
19411 $c['nestedmiw'] = isset($c['nestedmiw']) ? $c['nestedmiw'] /= $k : null;
19416 !isset($c['textbuffer'][$n][16]['T']) || $c['textbuffer'][$n][16]['T']['w'] /= $k;
19417 !isset($c['textbuffer'][$n][16]['B']) || $c['textbuffer'][$n][16]['B']['w'] /= $k;
19418 !isset($c['textbuffer'][$n][16]['L']) || $c['textbuffer'][$n][16]['L']['w'] /= $k;
19419 !isset($c['textbuffer'][$n][16]['R']) || $c['textbuffer'][$n][16]['R']['w'] /= $k;
19662 for ($k = 0; $k < $c['colspan']; $k++) {
19663 $table['wc'][($j + $k)]['wpercent'] = $c['wpercent'] / $c['colspan'];
19765 for ($k = $j; $k < $lc; $k++) {
19766 if (isset($table['l'][$k])) {
19768 $table['l'][$k] += $c['miw'] / $c['colspan'];
19770 $table['l'][$k] += $c['s'] / $c['colspan'];
19774 $table['l'][$k] = $c['miw'] / $c['colspan'];
19776 $table['l'][$k] = $c['s'] / $c['colspan'];
19779 $wis += $wc[$k]['miw']; // $wis is the sum of the column miw in the colspan
19780 $was += $wc[$k]['maw']; // $was is the sum of the column maw in the colspan
19782 $list[] = $k;
19783 $wisa += $wc[$k]['miw']; // $wisa is the sum of the column miw in cells with no width specified in the colspan
19784 $wasa += $wc[$k]['maw']; // $wasa is the sum of the column maw in cells with no width specified in the colspan
19789 for ($k = $j; $k < $lc; $k++) {
19790 $wc[$k]['miw'] = $c['miw'] / $c['colspan'];
19794 for ($k = $j; $k < $lc; $k++) {
19795 $wc[$k]['miw'] += ($wc[$k]['miw'] / $wis) * $wi;
19801 foreach ($list as $k) {
19802 if (!isset($wc[$k]['w']) || !$wc[$k]['w']) {
19803 $wc[$k]['miw'] += ($wc[$k]['miw'] / $wisa) * $wi;
19810 for ($k = $j; $k < $lc; $k++) {
19811 $wc[$k]['maw'] = $c['maw'] / $c['colspan'];
19815 for ($k = $j; $k < $lc; $k++) {
19816 $wc[$k]['maw'] += ($wc[$k]['maw'] / $was) * $wi;
19822 foreach ($list as $k) {
19823 $wc[$k]['maw'] += $wi / count($list);
20118 for ($k = 0; $k < $numcols; $k++) {
20119 if (isset($widthcols[$k]['wpercent'])) {
20120 $curr = $widthcols[$k]['miw'];
20121 $widthcols[$k]['miw'] = ($table['w'] - $tblbw) * $widthcols[$k]['wpercent'] / 100;
20122 $wis += $widthcols[$k]['miw'] - $curr;
20123 $wisa += $widthcols[$k]['miw'] - $curr;
20136 for ($k = 0; $k < $numcols; $k++) {
20138 $spareratio = ($table['l'][$k] / $totaltextlength); // gives ratio to divide up free space
20141 if ($widthcols[$k]['miw'] + ($wi * $spareratio) >= $widthcols[$k]['maw']) { // mPDF 5.7.3
20142 $surplus += ($wi * $spareratio) - ($widthcols[$k]['maw'] - $widthcols[$k]['miw']);
20143 $widthcols[$k]['miw'] = $widthcols[$k]['maw'];
20145 $notsetlist[] = $k;
20146 $ttl += $table['l'][$k];
20147 $widthcols[$k]['miw'] += ($wi * $spareratio);
20155 foreach ($list as $k) {
20157 $spareratio = ($table['l'][$k] / $totalatextlength); // gives ratio to divide up free space
20160 if ($widthcols[$k]['miw'] + ($wi * $spareratio) >= $widthcols[$k]['maw']) { // mPDF 5.7.3
20161 $surplus += ($wi * $spareratio) - ($widthcols[$k]['maw'] - $widthcols[$k]['miw']);
20162 $widthcols[$k]['miw'] = $widthcols[$k]['maw'];
20164 $notsetlist[] = $k;
20165 $ttl += $table['l'][$k];
20166 $widthcols[$k]['miw'] += ($wi * $spareratio);
20479 for ($k = $i; $k < $lr; $k++) {
20480 $hs += $heightrow[$k];
20484 $tc = &$cells[$k][$m];
20494 $list[] = $k;
20532 for ($k = $i; $k < $lr; $k++) {
20533 $heightrow[$k] = $c['mih'] / $c['rowspan'];
20537 for ($k = $i; $k < $lr; $k++) {
20538 $heightrow[$k] += ($heightrow[$k] / $hs) * $hi;
20542 foreach ($list as $k) {
20543 $heightrow[$k] += $hi / (count($list)); // mPDF 6
20566 for ($k = $top; $k <= $bottom; $k++) {
20568 if ($k != $i && $heightrow[$k] == 0) {
20572 if ($k == $top) {
20575 if (!isset($cells[$k][$m]) || $cells[$k][$m] == 0) {
20579 } elseif ($k == $bottom) {
20582 $c = &$cells[$k][$m];
20595 for ($k = $top; $k <= $bottom; $k++) {
20596 if (isset($cells[$k][$m]) && $cells[$k][$m] != 0) {
20597 $c = &$cells[$k][$m];
20610 $newhr[$k] = max((isset($newhr[$k]) ? $newhr[$k] : 0), $useh);
20617 for ($k = $top; $k <= $bottom; $k++) {
20618 $heightrow[$k] = $newhr[$k];
20649 for ($k = 0; $k < $j; $k++) {
20650 $x += $widthcols[$k];
20654 for ($k = $j + $cell['colspan'] - 1; $k > $j; $k--) {
20655 $w += $widthcols[$k];
20675 for ($k = 0; $k < $j; $k++) {
20676 if ($table['colPg'][$k] == $pg) {
20677 $x += $widthcols[$k];
20682 for ($k = $j + $cell['colspan'] - 1; $k > $j; $k--) {
20683 if ($table['colPg'][$k] == $pg) {
20684 $w += $widthcols[$k];
20704 for ($k = 0; $k < $i; $k++) {
20705 $y += $heightrow[$k];
20709 for ($k = $i + $cell['rowspan'] - 1; $k > $i; $k--) {
20710 if (array_key_exists($k, $heightrow)) {
20711 $h += $heightrow[$k];
22855 foreach ($cell['textbuffer'] as $k => $t) {
22863 $cell['textbuffer'][$k][0] = preg_replace('/{iteration ' . $m[1] . '}/', $this->$vname, $cell['textbuffer'][$k][0]);
23313 foreach ($this->extgstates[$i]['parms'] as $k => $v) {
23314 $this->writer->write('/' . $k . ' ' . $v);
23525 foreach ($this->PageNumSubstitutions as $k => $v) {
23526 if ($this->PageNumSubstitutions[$k]['from'] == $target_page) {
23528 if ($this->PageNumSubstitutions[$k]['suppress'] != 'on' && $this->PageNumSubstitutions[$k]['suppress'] != 1) {
23529 $this->PageNumSubstitutions[$k]['suppress'] = 'off';
23532 if ($this->PageNumSubstitutions[$k]['from'] == $start_page) {
23534 if ($this->PageNumSubstitutions[$k]['suppress'] != 'on' && $this->PageNumSubstitutions[$k]['suppress'] != 1) {
23535 $this->PageNumSubstitutions[$k]['suppress'] = 'off';
23538 if ($this->PageNumSubstitutions[$k]['from'] == ($end_page + 1)) {
23540 if ($this->PageNumSubstitutions[$k]['suppress'] != 'on' && $this->PageNumSubstitutions[$k]['suppress'] != 1) {
23541 $this->PageNumSubstitutions[$k]['suppress'] = 'off';
23741 foreach ($this->PageNumSubstitutions as $k => $v) {
23742 if ($this->PageNumSubstitutions[$k]['from'] >= $start_page && $this->PageNumSubstitutions[$k]['from'] <= $end_page) {
23743 $this->PageNumSubstitutions[$k]['from'] += ($target_page - $start_page);
23744 $newarr[$this->PageNumSubstitutions[$k]['from']] = $this->PageNumSubstitutions[$k];
23745 } elseif ($this->PageNumSubstitutions[$k]['from'] >= $target_page && $this->PageNumSubstitutions[$k]['from'] < $start_page) {
23746 $this->PageNumSubstitutions[$k]['from'] += $n_toc;
23747 $newarr[$this->PageNumSubstitutions[$k]['from']] = $this->PageNumSubstitutions[$k];
23749 $newarr[$this->PageNumSubstitutions[$k]['from']] = $this->PageNumSubstitutions[$k];
23924 foreach ($this->PageNumSubstitutions as $k => $v) {
23925 if ($this->PageNumSubstitutions[$k]['from'] > $end_page) {
23926 $this->PageNumSubstitutions[$k]['from'] -= $n_tod;
23927 } elseif ($this->PageNumSubstitutions[$k]['from'] < $start_page) {
23928 unset($this->PageNumSubstitutions[$k]);
24112 foreach ($a as $k => $e) {
24113 if ($k % 2 == 0 && !$marker) {
26100 function WriteBarcode($code, $showtext = 1, $x = '', $y = '', $size = 1, $border = 0, $paddingL = 1, $paddingR = 1, $paddingT = 2, $paddingB = 2, $height = 1, $bgcol = false, $col = false, $btype = 'ISBN', $supplement = '0', $supplement_code = '', $k = 1)
26158 $size /= $k; // in case resized in a table
26480 function WriteBarcode2($code, $x = '', $y = '', $size = 1, $height = 1, $bgcol = false, $col = false, $btype = 'IMB', $print_ratio = '', $k = 1, $quiet_zone_left = null, $quiet_zone_right = null)
26502 $size /= $k; // in case resized in a table
26506 $llm = $arrcode['quietL'] / $k; // Left Quiet margin
26507 $rlm = $arrcode['quietR'] / $k; // Right Quiet margin
26508 $tlm = $blm = $arrcode['quietTB'] / $k;
26850 function columnAdjustAdd($type, $k, $xadj, $yadj, $a, $b, $c = 0, $d = 0, $e = 0, $f = 0)
26854 $a += ($xadj * $k);
26855 $b -= ($yadj * $k);
26861 $a += ($xadj * $k);
26862 $b -= ($yadj * $k);
26868 $a += ($xadj * $k);
26869 $b -= ($yadj * $k);
26875 $c += ($xadj * $k);
26876 $d -= ($yadj * $k);
26882 $a += ($xadj * $k);
26883 $b -= ($yadj * $k);
26889 $a += ($xadj * $k);
26890 $b -= ($yadj * $k);
26891 $c += ($xadj * $k);
26892 $d -= ($yadj * $k);
26893 $e += ($xadj * $k);
26894 $f -= ($yadj * $k);
27146 foreach ($search as $k => $val) {
27147 $search[$k] = $this->writer->utf8ToUtf16BigEndian($search[$k], false);
27148 $search[$k] = $this->writer->escape($search[$k]);
27149 $replacement[$k] = $this->writer->utf8ToUtf16BigEndian($replacement[$k], false);
27150 $replacement[$k] = $this->writer->escape($replacement[$k]);
27153 foreach ($replacement as $k => $val) {
27154 $replacement[$k] = mb_convert_encoding($replacement[$k], $this->mb_enc, 'utf-8');
27155 $replacement[$k] = $this->writer->escape($replacement[$k]);
27195 foreach ($search as $k => $val) {
27196 $s = str_replace($search[$k], $replacement[$k], $s);