Lines Matching refs:i

284 		// Image file (does not allow vector images i.e. WMF/SVG)
362 $outstring = sprintf(" q %.3F 0 0 %.3F %.3F %.3F cm /I%d Do Q ", $img_w * $this->kp, $img_h * $this->kp, $img_x * $this->kp, -($img_y + $img_h) * $this->kp, $info['i']);
398 for ($i = 0; $i < count($pts); $i++) {
399 if ($i % 2 == 0) { // x values
400 $minl = min($minl, $pts[$i]);
401 $maxr = max($maxr, $pts[$i]);
403 $mint = min($mint, $pts[$i]);
404 $maxb = max($maxb, $pts[$i]);
426 for ($i = 0; $i < count($pts); $i++) {
427 if ($i % 2 == 0) { // x values
428 $minl = min($minl, $pts[$i]);
429 $maxr = max($maxr, $pts[$i]);
431 $mint = min($mint, $pts[$i]);
432 $maxb = max($maxb, $pts[$i]);
470 for ($i = 0; $i < count($m[0]); $i++) {
471 $c = strtolower($m[1][$i]);
472 $v = trim($m[2][$i]);
538 for ($i = 0; $i < (count($gradient_info['color'])); $i++) {
539 if (stristr($gradient_info['color'][$i]['offset'], '%') !== false) {
540 $gradient_info['color'][$i]['offset'] = ((float) $gradient_info['color'][$i]['offset']) / 100;
542 if (isset($gradient_info['color'][($i + 1)]['offset']) && stristr($gradient_info['color'][($i + 1)]['offset'], '%') !== false) {
543 $gradient_info['color'][($i + 1)]['offset'] = ((float) $gradient_info['color'][($i + 1)]['offset']) / 100;
545 if ($gradient_info['color'][$i]['offset'] < 0) {
546 $gradient_info['color'][$i]['offset'] = 0;
548 if ($gradient_info['color'][$i]['offset'] > 1) {
549 $gradient_info['color'][$i]['offset'] = 1;
551 if ($i > 0) {
552 if ($gradient_info['color'][$i]['offset'] < $gradient_info['color'][($i - 1)]['offset']) {
553 $gradient_info['color'][$i]['offset'] = $gradient_info['color'][($i - 1)]['offset'];
666 for ($i = 0; $i < $ns; $i++) {
667 $offs[$i] = $gradient_info['color'][$i]['offset'];
675 for ($i = 0; $i < $ns; $i++) {
677 $gradient_info['color'][(($ns * $gp) + $i)] = $gradient_info['color'][(($ns * ($gp - 1)) + ($ns - $i - 1))];
678 $tmp = $gp + (1 - $offs[($ns - $i - 1)]);
679 $gradient_info['color'][(($ns * $gp) + $i)]['offset'] = $tmp;
681 $gradient_info['color'][(($ns * $gp) + $i)] = $gradient_info['color'][$i];
682 $tmp = $gp + $offs[$i];
683 $gradient_info['color'][(($ns * $gp) + $i)]['offset'] = $tmp;
712 for ($i = 0; $i < $ns; $i++) {
714 $newarr[$i] = $gradient_info['color'][($ns - $i - 1)];
716 $tmp = -$gp + (1 - $offs[($ns - $i - 1)]);
717 $newarr[$i]['offset'] = $tmp;
719 $tmp = -$gp + $offs[$i];
720 $newarr[$i]['offset'] = $tmp;
723 $newarr[$i] = $gradient_info['color'][$i];
724 $tmp = -$gp + $offs[$i];
725 $newarr[$i]['offset'] = $tmp;
747 for ($i = ($ns - 1); $i >= 0; $i--) {
748 if (isset($newarr[$i]['offset'])) {
749 array_unshift($gradient_info['color'], $newarr[$i]);
764 for ($i = 0; $i < ($stops); $i++) {
765 if (!$gradient_info['color'][$i]['color']) {
767 $gradient_info['color'][$i]['color'] = '0 0 0';
769 $gradient_info['color'][$i]['color'] = '0';
771 $gradient_info['color'][$i]['color'] = '1 1 1 1';
774 $offset = ($gradient_info['color'][$i]['offset'] - $min) / $range;
776 'col' => $gradient_info['color'][$i]['color'],
777 'opacity' => $gradient_info['color'][$i]['opacity'],
779 if ($gradient_info['color'][$i]['opacity'] < 1) {
952 for ($i = 0; $i < $ns; $i++) {
953 $offs[$i] = $gradient_info['color'][$i]['offset'];
959 for ($i = 0; $i < $ns; $i++) {
961 $gradient_info['color'][(($ns * $gp) + $i)] = $gradient_info['color'][(($ns * ($gp - 1)) + ($ns - $i - 1))];
962 $tmp = $gp + (1 - $offs[($ns - $i - 1)]);
963 $gradient_info['color'][(($ns * $gp) + $i)]['offset'] = $tmp;
965 $gradient_info['color'][(($ns * $gp) + $i)] = $gradient_info['color'][$i];
966 $tmp = $gp + $offs[$i];
967 $gradient_info['color'][(($ns * $gp) + $i)]['offset'] = $tmp;
993 for ($i = 0; $i < ($stops); $i++) {
994 if (!$gradient_info['color'][$i]['color']) {
996 $gradient_info['color'][$i]['color'] = '0 0 0';
998 $gradient_info['color'][$i]['color'] = '0';
1000 $gradient_info['color'][$i]['color'] = '1 1 1 1';
1003 $offset = ($gradient_info['color'][$i]['offset'] - $min) / $range;
1005 'col' => $gradient_info['color'][$i]['color'],
1006 'opacity' => $gradient_info['color'][$i]['opacity'],
1008 if ($gradient_info['color'][$i]['opacity'] < 1) {
1101 $svg_w = preg_replace("/([0-9\.]*)(.*)/i", "$1", $this->svg_attribs['width']);
1102 $svg_h = preg_replace("/([0-9\.]*)(.*)/i", "$1", $this->svg_attribs['height']);
1143 for ($i = 0; $i < count($m[0]); $i++) {
1144 $c = strtolower($m[1][$i]);
1145 $v = trim($m[2][$i]);
1218 if (preg_match('/fill:\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)/i', $critere_style['style'], $m)) { // mPDF 5.7.2
1221 $tmp = preg_replace("/(.*)fill:\s*([a-z0-9#_()]*|none)(.*)/i", "$2", $critere_style['style']);
1228 if ((preg_match("/[^-]opacity:\s*([a-z0-9.]*|none)/i", $critere_style['style'], $m) ||
1229 preg_match("/^opacity:\s*([a-z0-9.]*|none)/i", $critere_style['style'], $m)) && $m[1] != 'inherit') {
1234 $tmp = preg_replace("/(.*)fill-opacity:\s*([a-z0-9.]*|none)(.*)/i", "$2", $critere_style['style']);
1239 $tmp = preg_replace("/(.*)fill-rule:\s*([a-z0-9#]*|none)(.*)/i", "$2", $critere_style['style']);
1247 $tmp = preg_replace("/(.*)stroke:\s*([a-z0-9#]*|none)(.*)/i", "$2", $critere_style['style']);
1253 $tmp = preg_replace("/(.*)stroke-linecap:\s*([a-z0-9#]*|none)(.*)/i", "$2", $critere_style['style']);
1258 $tmp = preg_replace("/(.*)stroke-linejoin:\s*([a-z0-9#]*|none)(.*)/i", "$2", $critere_style['style']);
1263 $tmp = preg_replace("/(.*)stroke-miterlimit:\s*([a-z0-9#]*|none)(.*)/i", "$2", $critere_style['style']);
1268 $tmp = preg_replace("/(.*)stroke-opacity:\s*([a-z0-9.]*|none)(.*)/i", "$2", $critere_style['style']);
1273 $tmp = preg_replace("/(.*)stroke-width:\s*([a-z0-9.]*|none)(.*)/i", "$2", $critere_style['style']);
1278 $tmp = preg_replace("/(.*)stroke-dasharray:\s*([a-z0-9., ]*|none)(.*)/i", "$2", $critere_style['style']);
1283 $tmp = preg_replace("/(.*)stroke-dashoffset:\s*([a-z0-9.]*|none)(.*)/i", "$2", $critere_style['style']);
1357 $id_gradient = preg_replace("/url\(#([\w_]*)\)/i", "$1", $critere_style['fill']);
1397 $id_gradient = preg_replace("/url\(#([\w_]*)\)/i","$1",$critere_style['stroke']);
1482 for ($i = 0; $i < count($d); $i += 2) {
1484 if ($d[$i] === 'none') {
1488 $arr .= sprintf('%.3F %.3F ', $d[$i] * $this->kp, $d[$i + 1] * $this->kp);
1575 preg_match_all('/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/i', $arguments, $a, PREG_PATTERN_ORDER);
1594 for ($i = 0; $i < $argumentCount; $i += 2) {
1596 $x = $a[$i];
1597 $y = $a[$i + 1];
1621 if ($i == 0) {
1639 for ($i = 0; $i < $argumentCount; $i+=2) {
1641 $x = ($a[$i]);
1642 $y = ($a[$i + 1]);
1674 for ($i = 0; $i < $argumentCount; $i++) {
1676 $x = ($a[$i]);
1708 for ($i = 0; $i < $argumentCount; $i++) {
1710 $y = ($a[$i]);
1749 for ($i = 0; $i < $argumentCount; $i += 4) {
1754 $x2 = ($a[$i]);
1755 $y2 = ($a[$i + 1]);
1757 $x = ($a[$i + 2]);
1758 $y = ($a[$i + 3]);
1806 for ($i = 0; $i < $argumentCount; $i += 6) {
1808 $x1 = ($a[$i]);
1809 $y1 = ($a[$i + 1]);
1810 $x2 = ($a[$i + 2]);
1811 $y2 = ($a[$i + 3]);
1812 $x = ($a[$i + 4]);
1813 $y = ($a[$i + 5]);
1862 for ($i = 0; $i < $argumentCount; $i += 4) {
1864 $x1 = ($a[$i]);
1865 $y1 = ($a[$i + 1]);
1866 $x = ($a[$i + 2]);
1867 $y = ($a[$i + 3]);
1929 for ($i = 0; $i < $argumentCount; $i += 2) {
1931 $x = ($a[$i]);
1932 $y = ($a[$i + 1]);
1982 for ($i = 0; $i < $argumentCount; $i += 7) {
1984 $rx = isset($a[$i]) ? $a[$i] : 0;
1985 $ry = isset($a[$i + 1]) ? $a[$i + 1] : 0;
1988 $angle = isset($a[$i + 2]) ? $a[$i + 2] : 0;
1990 $largeArcFlag = isset($a[$i + 3]) ? $a[$i + 3] : 0;
1991 $sweepFlag = isset($a[$i + 4]) ? $a[$i + 4] : 0;
1993 $x2 = isset($a[$i + 5]) ? $a[$i + 5] : 0;
1994 $y2 = isset($a[$i + 6]) ? $a[$i + 6] : 0;
2002 $this->xbase += isset($a[$i + 5]) ? $a[$i + 5] : 0;
2003 $this->ybase += isset($a[$i + 6]) ? -$a[$i + 6] : 0;
2128 for ($i = 0; $i < $segments; $i++) {
2150 $coords[$i] = [($x1 + $dx1), ($y1 + $dy1), ($xe + $dxe), ($ye + $dye), $xe, $ye];
2343 for ($i = 2; $i < count($arguments); $i += 2) {
2345 $tmp_x = $arguments[$i];
2346 $tmp_y = - $arguments[($i + 1)];
2348 $tmp_x = $this->ConvertSVGSizePixels($arguments[$i], 'x');
2349 $tmp_y = - $this->ConvertSVGSizePixels($arguments[($i + 1)], 'y');
2364 for ($i = 2; $i < count($arguments); $i += 2) {
2365 $tmp_x = $arguments[$i];
2366 $tmp_y = - $arguments[($i + 1)];
2503 $i = 0;
2507 while ($i < $nb) {
2510 $char = mb_substr($txt, $i, 1, 'UTF-8');
2562 $i++;
2725 $aixextra = sprintf(' /F%d %.3F Tf %s %s Tr %s %s ', $this->mpdf->CurrentFont['i'], $this->mpdf->FontSizePt, $opacitystr, $render, $fillstr, $strokestr);
2763 $tmp = preg_replace("/(.*)fill:\s*([a-z0-9#_()]*|none)(.*)/i", "$2", $critere_style['style']);
2770 if (preg_match("/[^-]opacity:\s*([a-z0-9.]*|none)/i", $critere_style['style'], $m) ||
2771 preg_match("/^opacity:\s*([a-z0-9.]*|none)/i", $critere_style['style'], $m)) {
2776 $tmp = preg_replace("/(.*)fill-opacity:\s*([a-z0-9.]*|none)(.*)/i", "$2", $critere_style['style']);
2781 $tmp = preg_replace("/(.*)fill-rule:\s*([a-z0-9#]*|none)(.*)/i", "$2", $critere_style['style']);
2789 $tmp = preg_replace("/(.*)stroke:\s*([a-z0-9#]*|none)(.*)/i", "$2", $critere_style['style']);
2795 $tmp = preg_replace("/(.*)stroke-linecap:\s*([a-z0-9#]*|none)(.*)/i", "$2", $critere_style['style']);
2800 $tmp = preg_replace("/(.*)stroke-linejoin:\s*([a-z0-9#]*|none)(.*)/i", "$2", $critere_style['style']);
2805 $tmp = preg_replace("/(.*)stroke-miterlimit:\s*([a-z0-9#]*|none)(.*)/i", "$2", $critere_style['style']);
2810 $tmp = preg_replace("/(.*)stroke-opacity:\s*([a-z0-9.]*|none)(.*)/i", "$2", $critere_style['style']);
2815 $tmp = preg_replace("/(.*)stroke-width:\s*([a-z0-9.]*|none)(.*)/i", "$2", $critere_style['style']);
2820 $tmp = preg_replace("/(.*)stroke-dasharray:\s*([a-z0-9., ]*|none)(.*)/i", "$2", $critere_style['style']);
2825 $tmp = preg_replace("/(.*)stroke-dashoffset:\s*([a-z0-9.]*|none)(.*)/i", "$2", $critere_style['style']);
2830 $tmp = preg_replace("/(.*)font-family:\s*([a-z0-9.\"' ,\-]*|none)(.*)/i", "$2", $critere_style['style']);
2835 $tmp = preg_replace("/(.*)font-size:\s*([a-z0-9.]*|none)(.*)/i", "$2", $critere_style['style']);
2840 $tmp = preg_replace("/(.*)font-weight:\s*([a-z0-9.]*|normal)(.*)/i", "$2", $critere_style['style']);
2845 $tmp = preg_replace("/(.*)font-style:\s*([a-z0-9.]*|normal)(.*)/i", "$2", $critere_style['style']);
2850 $tmp = preg_replace("/(.*)font-variant:\s*([a-z0-9.]*|normal)(.*)/i", "$2", $critere_style['style']);
2855 $tmp = preg_replace("/(.*)text-anchor:\s*(start|middle|end)(.*)/i", "$2", $critere_style['style']);
2864 $tmp = preg_replace("/(.*)(italic|oblique)(.*)/i", "$2", $critere_style['font']);
2872 $tmp = preg_replace("/(.*)(bold|bolder)(.*)/i", "$2", $critere_style['font']);
2880 $tmp = preg_replace("/(.*)(small\-caps)(.*)/i", "$2", $critere_style['font']);
2886 $tmp = preg_replace("/(.*)\b(\d+)[\b|\/](.*)/i", "$2", $critere_style['font']);
3104 $data = preg_replace('/<([^!?\/a-zA-Z_:])/i', '&lt;\\1', $data); // mPDF 5.7.4
3122 for ($i = 0; $i < count($ent[0]); $i++) {
3123 $data = preg_replace('/&' . preg_quote($ent[1][$i], '/') . ';/is', $ent[2][$i], $data);
3137 for ($i = 0; $i < count($links[0]); $i++) {
3138 $links[5][$i] = 'tmpLink' . random_int(100000, 9999999);
3139 $data = preg_replace('/' . preg_quote($links[0][$i], '/') . '/is', '<MYLINKS' . $links[5][$i] . '>', $data);
3148 for ($i = 0; $i < count($m[0]); $i++) {
3149 $stops[$m[3][$i]] = $m[5][$i];
3153 for ($i = 0; $i < count($links[0]); $i++) {
3154 $def = $links[1][$i] . ' ' . $links[4][$i] . '>' . $stops[$links[3][$i]] . '</' . $links[2][$i] . '>';
3155 $data = preg_replace('/<MYLINKS' . $links[5][$i] . '>/is', $def, $data);
3161 for ($i = 0; $i < count($links[0]); $i++) {
3164 if (preg_match('/<text [^>]*id\s*=\s*["\']' . $links[2][$i] . '["\'][^>]*>(.*?)<\/text>/si', $data, $m)) {
3168 $data = preg_replace('/' . preg_quote($links[0][$i], '/') . '/is', $insert, $data);
3175 for ($i = 0; $i < count($links[0]); $i++) {
3178 if (preg_match('/<([a-zA-Z]*) [^>]*id\s*=\s*["\']' . $links[2][$i] . '["\'][^>]*\/>/si', $data, $m)) {
3181 if (!$insert && preg_match('/<([a-zA-Z]*) [^>]*id\s*=\s*["\']' . $links[2][$i] . '["\']/si', $data, $m)) {
3182 if (preg_match('/<' . $m[1] . '[^>]*id\s*=\s*["\']' . $links[2][$i] . '["\'][^>]*>.*?<\/' . $m[1] . '>/si', $data, $m)) {
3188 $inners = $links[1][$i] . ' ' . $links[3][$i];
3226 $data = preg_replace('/' . preg_quote($links[0][$i], '/') . '/is', $replacement, $data);
3230 for ($i = 0; $i < count($links[0]); $i++) {
3234 if (preg_match('/<([a-zA-Z]*) [^>]*id\s*=\s*["\']' . $links[2][$i] . '["\'][^>]*\/>/si', $data, $m)) {
3238 if (!$insert && preg_match('/<([a-zA-Z]*) [^>]*id\s*=\s*["\']' . $links[2][$i] . '["\']/si', $data, $m)) {
3239 if (preg_match('/<' . $m[1] . '[^>]*id\s*=\s*["\']' . $links[2][$i] . '["\'][^>]*>.*?<\/' . $m[1] . '>/si', $data, $m)) {
3245 $inners = $links[1][$i] . ' ' . $links[3][$i];
3279 $data = preg_replace('/' . preg_quote($links[0][$i], '/') . '/is', $replacement, $data);
3338 foreach ($a as $i => $e) {
3339 if ($i % 2 == 0) {
3400 if (substr($a[$i - 1], 0, 5) != '<text' && substr($a[$i - 1], 0, 5) != '<tspa') {
3433 $a[$i] = $o;
3435 $a[$i] = '<' . $e . '>';
3573 if (isset($attribs['style']) and preg_match('/stop-color:\s*([^;]*)/i', $attribs['style'], $m)) {
3597 if (isset($attribs['style']) and preg_match('/stop-opacity:\s*([0-9.]*)/i', $attribs['style'], $m)) {
3816 for ($i = 0; $i < count($tmp); $i++) {
3817 if ($tmp[$i][0] != '') {
3818 array_push($arguments, $tmp[$i][0]);
3835 for ($i = 0; $i < count($tmp[0]); $i++) {
3836 if ($tmp[0][$i] != '') {
3837 array_push($arguments, $tmp[0][$i]);
4222 for ($i = 0; $i <= 1; $i++) {
4223 $b = 6 * $P0[$i] - 12 * $P1[$i] + 6 * $P2[$i];
4224 $a = -3 * $P0[$i] + 9 * $P1[$i] - 9 * $P2[$i] + 3 * $P3[$i];
4225 $c = 3 * $P1[$i] - 3 * $P0[$i];
4236 $bounds[$i][] = (pow((1 - $t), 3) * $P0[$i] + 3 * pow((1 - $t), 2) * $t * $P1[$i] + 3 * (1 - $t) * pow($t, 2) * $P2[$i] + pow($t, 3) * $P3[$i]);
4251 $bounds[$i][] = (pow((1 - $t1), 3) * $P0[$i] + 3 * pow((1 - $t1), 2) * $t1 * $P1[$i] + 3 * (1 - $t1) * pow($t1, 2) * $P2[$i] + pow($t1, 3) * $P3[$i]);
4257 $bounds[$i][] = (pow((1 - $t2), 3) * $P0[$i] + 3 * pow((1 - $t2), 2) * $t2 * $P1[$i] + 3 * (1 - $t2) * pow($t2, 2) * $P2[$i] + pow($t2, 3) * $P3[$i]);