Lines Matching defs:v

1924 				foreach ($this->extgstates[$i]['parms'] as $k => $v) {
1925 if (!isset($parms[$k]) || $parms[$k] != $v) {
1940 function SetVisibility($v)
1952 if ($v == 'printonly') {
1955 } elseif ($v == 'screenonly') {
1958 } elseif ($v == 'hidden') {
1961 } elseif ($v != 'visible') {
1962 throw new \Mpdf\MpdfException('Incorrect visibility: ' . $v);
1964 $this->visibility = $v;
7259 $v = trim($m[2][$i]);
7260 $vv = preg_split('/[ ,]+/', $v);
9078 foreach ($c as $v) {
9079 $v = explode("=", $v, 2);
9080 $sp[$v[0]] = $v[1];
10976 function fixLineheight($v)
10979 if (preg_match('/^[0-9\.,]*$/', $v) && $v >= 0) {
10980 return ($v + 0);
10981 } elseif (strtoupper($v) == 'NORMAL' || $v == 'N') {
10984 $tlh = $this->sizeConverter->convert($v, $this->FontSize, $this->FontSize, true);
13798 foreach ($contents[0] as $v) {
13800 if (preg_match('/^([^=]*)=["]?([^"]*)["]?$/', $v, $a3) || preg_match('/^([^=]*)=[\']?([^\']*)[\']?$/', $v, $a3)) {
13868 foreach ($this->internallink as $k => $v) {
13874 if (!is_array($v)) {
13878 $ypos = $v['Y'];
13879 $pagenum = $v['PAGE'];
18134 $v = $arrayaux['FONT-SIZE'];
18135 $firstLetter = substr($v, 0, 1);
18138 $mmsize = $this->sizeConverter->convert($v, $this->blk[$this->blklvl - 1]['InlineProperties']['size']);
18140 $mmsize = $this->sizeConverter->convert($v, $this->default_font_size / Mpdf::SCALE);
18142 $mmsize = $this->sizeConverter->convert($v, $this->FontSize);
18146 $v = strtoupper($v);
18147 if (isset($this->fontsizes[$v])) {
18148 $this->SetFontSize($this->fontsizes[$v] * $this->default_font_size, false);
18174 $v = $arrayaux['FONT-FAMILY'];
18176 $aux_fontlist = explode(",", $v);
18182 $v = strtolower(trim($fonttype));
18183 if (isset($this->fonttrans[$v]) && $this->fonttrans[$v]) {
18184 $v = $this->fonttrans[$v];
18186 if ((!$this->onlyCoreFonts && in_array($v, $this->available_unifonts)) ||
18187 in_array($v, ['ccourier', 'ctimes', 'chelvetica']) ||
18188 ($this->onlyCoreFonts && in_array($v, ['courier', 'times', 'helvetica', 'arial'])) ||
18189 in_array($v, ['sjis', 'uhc', 'big5', 'gb'])) {
18190 $fonttype = $v;
18200 $v = strtolower(trim($fonttype));
18201 if (isset($this->fonttrans[$v]) && $this->fonttrans[$v]) {
18202 $v = $this->fonttrans[$v];
18204 if (in_array($v, $this->sans_fonts) || in_array($v, $this->serif_fonts) || in_array($v, $this->mono_fonts)) {
18205 $fonttype = $v;
18219 foreach ($arrayaux as $k => $v) {
18224 $this->blk[$this->blklvl]['border_top'] = $this->border_details($v);
18230 $this->blk[$this->blklvl]['border_bottom'] = $this->border_details($v);
18236 $this->blk[$this->blklvl]['border_left'] = $this->border_details($v);
18242 $this->blk[$this->blklvl]['border_right'] = $this->border_details($v);
18250 $this->blk[$this->blklvl]['padding_top'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18253 $this->blk[$this->blklvl]['padding_bottom'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18256 if (($tag == 'UL' || $tag == 'OL') && $v == 'auto') {
18260 $this->blk[$this->blklvl]['padding_left'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18263 if (($tag == 'UL' || $tag == 'OL') && $v == 'auto') {
18267 $this->blk[$this->blklvl]['padding_right'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18272 $tmp = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18283 $this->blk[$this->blklvl]['margin_bottom'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18286 $this->blk[$this->blklvl]['margin_left'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18289 $this->blk[$this->blklvl]['margin_right'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18294 $this->blk[$this->blklvl]['border_radius_TL_H'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18297 $this->blk[$this->blklvl]['border_radius_TL_V'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18300 $this->blk[$this->blklvl]['border_radius_TR_H'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18303 $this->blk[$this->blklvl]['border_radius_TR_V'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18306 $this->blk[$this->blklvl]['border_radius_BL_H'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18309 $this->blk[$this->blklvl]['border_radius_BL_V'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18312 $this->blk[$this->blklvl]['border_radius_BR_H'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18315 $this->blk[$this->blklvl]['border_radius_BR_V'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18320 $bs = $this->cssManager->setCSSboxshadow($v);
18327 if (strtoupper($v) == 'PADDING-BOX') {
18329 } elseif (strtoupper($v) == 'CONTENT-BOX') {
18335 if (strtoupper($v) == 'AVOID') {
18337 } elseif (strtoupper($v) == 'ALWAYS' || strtoupper($v) == 'LEFT' || strtoupper($v) == 'RIGHT') {
18338 $this->blk[$this->blklvl]['page_break_after'] = strtoupper($v);
18344 if (strtoupper($v) == 'CLONE') {
18346 } elseif (strtoupper($v) == 'SLICE') {
18352 if (strtoupper($v) != 'AUTO') {
18353 $this->blk[$this->blklvl]['css_set_width'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false);
18360 $this->blk[$this->blklvl]['list_style_type'] = strtolower($v);
18363 $this->blk[$this->blklvl]['list_style_image'] = strtolower($v);
18366 $this->blk[$this->blklvl]['list_style_position'] = strtolower($v);
18376 $this->blk[$this->blklvl]['text_indent'] = $this->sizeConverter->convert($v, $this->blk[$prevlevel]['inner_width'], $this->FontSize, false) . 'mm';
18380 if (strtoupper($v) == 'COLLAPSE') {
18386 $this->blk[$this->blklvl]['line_height'] = $this->fixLineheight($v);
18394 $this->blk[$this->blklvl]['line_stacking_strategy'] = strtolower($v);
18398 $this->blk[$this->blklvl]['line_stacking_shift'] = strtolower($v);
18402 switch (strtoupper($v)) {
18421 $this->blk[$this->blklvl]['gradient'] = $v;
18427 if ($v) {
18428 $this->blk[$this->blklvl]['direction'] = strtolower($v);
18438 if (strtoupper($v) == 'NONE') {
18451 $this->spanborddet['T'] = $this->border_details($v);
18456 $this->spanborddet['B'] = $this->border_details($v);
18461 $this->spanborddet['L'] = $this->border_details($v);
18466 $this->spanborddet['R'] = $this->border_details($v);
18471 $v = strtolower($v);
18472 if ($v == 'visible' || $v == 'hidden' || $v == 'printonly' || $v == 'screenonly') {
18473 $this->textparam['visibility'] = $v;
18483 if (strtoupper($v) == 'NOJUSTIFY' && $this->blk[$this->blklvl]['align'] == "J") {
18490 $cor = $this->colorConverter->convert($v, $this->PDFAXwarnings);
18511 switch (strtoupper($v)) {
18543 $sz = $this->sizeConverter->convert($v, $lh, $this->FontSize, false);
18567 $this->lSpacingCSS = $v;
18574 $this->wSpacingCSS = $v;
18581 switch (strtoupper($v)) {
18593 switch (strtoupper($v)) {
18604 if (strtoupper($v) == 'NORMAL' || (strtoupper($v) == 'AUTO' && $this->useKerning)) {
18615 } elseif (strtoupper($v) == 'NONE' || (strtoupper($v) == 'AUTO' && !$this->useKerning)) {
18628 $v = strtoupper($v);
18629 if (strpos($v, 'NORMAL') !== false) {
18632 $this->fontLanguageOverride = trim($v);
18641 switch (strtoupper($v)) {
18654 $v = strtoupper($v);
18660 if (strpos($v, 'ALL-SMALL-CAPS') !== false) {
18662 } elseif (strpos($v, 'SMALL-CAPS') !== false) {
18668 } elseif (strpos($v, 'ALL-PETITE-CAPS') !== false) {
18670 } elseif (strpos($v, 'PETITE-CAPS') !== false) {
18672 } elseif (strpos($v, 'UNICASE') !== false) {
18674 } elseif (strpos($v, 'TITLING-CAPS') !== false) {
18680 $v = strtoupper($v);
18687 if (strpos($v, 'NORMAL') !== false) {
18690 } elseif (strpos($v, 'NONE') !== false) {
18694 if (strpos($v, 'NO-COMMON-LIGATURES') !== false) {
18696 } elseif (strpos($v, 'COMMON-LIGATURES') !== false) {
18699 if (strpos($v, 'NO-CONTEXTUAL') !== false) {
18701 } elseif (strpos($v, 'CONTEXTUAL') !== false) {
18704 if (strpos($v, 'NO-DISCRETIONARY-LIGATURES') !== false) {
18706 } elseif (strpos($v, 'DISCRETIONARY-LIGATURES') !== false) {
18709 if (strpos($v, 'NO-HISTORICAL-LIGATURES') !== false) {
18711 } elseif (strpos($v, 'HISTORICAL-LIGATURES') !== false) {
18718 $v = strtoupper($v);
18722 if (strpos($v, 'NORMAL') !== false) {
18725 if (strpos($v, 'ORDINAL') !== false) {
18728 if (strpos($v, 'SLASHED-ZERO') !== false) {
18731 if (strpos($v, 'LINING-NUMS') !== false) {
18734 } elseif (strpos($v, 'OLDSTYLE-NUMS') !== false) {
18738 if (strpos($v, 'PROPORTIONAL-NUMS') !== false) {
18741 } elseif (strpos($v, 'TABULAR-NUMS') !== false) {
18745 if (strpos($v, 'DIAGONAL-FRACTIONS') !== false) {
18748 } elseif (strpos($v, 'STACKED-FRACTIONS') !== false) {
18755 $v = strtoupper($v);
18759 if (strpos($v, 'NORMAL') !== false) {
18762 if (strpos($v, 'HISTORICAL-FORMS') !== false) {
18769 $v = strtolower($v);
18770 if (strpos($v, 'normal') !== false) {
18780 $tags = preg_split('/[,]/', $v);
18805 switch (strtoupper($v)) { // Not working 100%
18830 $ts = $this->cssManager->setCSStextshadow($v);
18837 if (strtoupper($v) == 'NONE') {
18839 } elseif (strtoupper($v) == 'AUTO') {
18841 } elseif (strtoupper($v) == 'MANUAL') {
18847 if (strtoupper($v) == 'NONE') {
18854 switch (strtoupper($v)) {
18856 $v = '0.03em';
18859 $v = '0.05em';
18862 $v = '0.07em';
18865 $w = $this->sizeConverter->convert($v, $this->FontSize, $this->FontSize);
18876 if (strtoupper($v) == 'INVERT') {
18884 $cor = $this->colorConverter->convert($v, $this->PDFAXwarnings);
18892 $cor = $this->colorConverter->convert($v, $this->PDFAXwarnings);
18903 $v = $arrayaux['TEXT-DECORATION']; // none underline line-through (strikeout) // Does not support: blink
18904 if (stristr($v, 'LINE-THROUGH')) {
18916 if (stristr($v, 'UNDERLINE')) {
18928 if (stristr($v, 'OVERLINE')) {
18940 if (stristr($v, 'NONE')) {
19044 foreach ($str as $v) {
19045 $this->enabledtags = str_replace(trim($v), '', $this->enabledtags);
23313 foreach ($this->extgstates[$i]['parms'] as $k => $v) {
23314 $this->writer->write('/' . $k . ' ' . $v);
23525 foreach ($this->PageNumSubstitutions as $k => $v) {
23608 foreach ($this->OrientationChanges as $p => $v) {
23624 foreach ($this->pageDim as $p => $v) {
23640 foreach ($this->saveHTMLHeader as $p => $v) {
23654 foreach ($this->saveHTMLFooter as $p => $v) {
23741 foreach ($this->PageNumSubstitutions as $k => $v) {
23764 foreach ($newarr as $v) {
23765 $this->PageNumSubstitutions[] = $v;
23827 foreach ($this->OrientationChanges as $p => $v) {
23841 foreach ($this->pageDim as $p => $v) {
23854 foreach ($this->saveHTMLHeader as $p => $v) {
23867 foreach ($this->saveHTMLFooter as $p => $v) {
23924 foreach ($this->PageNumSubstitutions as $k => $v) {
24006 foreach ((new \DirectoryIterator($directory)) as $v) {
24007 if ($v->isDir() || $v->isDot()) {
24011 $files[] = $v->getPathname();
24053 if ($indexCollationGroup && \in_array(strtolower($indexCollationGroup), array_map(function ($v) {
24054 return strtolower(basename($v, '.php'));
24590 foreach ($this->col_BMoutlines as $v) {
24591 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $this->y0, 'p' => $v['p']];
24598 foreach ($this->col_toc as $v) {
24599 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $v['p'], 'link' => $v['link'], 'toc_id' => $v['toc_id']];
24600 $this->links[$v['link']][1] = $this->y0;
24760 foreach ($this->col_BMoutlines as $v) {
24761 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $this->y0, 'p' => $v['p']];
24768 foreach ($this->col_toc as $v) {
24769 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $v['p'], 'link' => $v['link'], 'toc_id' => $v['toc_id']];
24770 $this->links[$v['link']][1] = $this->y0;
24856 foreach ($this->col_BMoutlines as $v) {
24857 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $v['y'], 'p' => $v['p']];
24863 foreach ($this->col_toc as $v) {
24864 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $v['p'], 'link' => $v['link'], 'toc_id' => $v['toc_id']];
24977 foreach ($l as $v) {
24978 $this->PageLinks[$p][] = $v;
24985 foreach ($l as $v) {
24986 $this->PageAnnots[$p][] = $v;
24994 foreach ($this->tbrot_BMoutlines as $v) {
24995 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $v['y'], 'p' => $v['p']];
25002 foreach ($this->tbrot_toc as $v) {
25003 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $v['p'], 'link' => $v['link'], 'toc_id' => $v['toc_id']];
25052 foreach ($l as $v) {
25054 $w = $v[2] / Mpdf::SCALE;
25055 $h = $v[3] / Mpdf::SCALE;
25056 $ax = ($v[0] / Mpdf::SCALE) - $this->tbrot_x0;
25057 $ay = (($this->hPt - $v[1]) / Mpdf::SCALE) - $this->tbrot_y0;
25067 $v[0] = $bx * Mpdf::SCALE;
25068 $v[1] = ($this->h - $by) * Mpdf::SCALE;
25069 $v[2] = $h * Mpdf::SCALE; // swap width and height
25070 $v[3] = $w * Mpdf::SCALE;
25072 $this->PageLinks[$p][] = $v;
25088 foreach ($l as $v) {
25089 $ax = abs($v['x']) - $this->tbrot_x0; // abs because -ve values are internally set and held for reference if annotMargin set
25090 $ay = $v['y'] - $this->tbrot_y0;
25100 if ($v['x'] < 0) {
25101 $v['x'] = -$bx;
25103 $v['x'] = $bx;
25106 $v['y'] = ($by);
25107 $this->PageAnnots[$p][] = $v;
25116 foreach ($this->tbrot_BMoutlines as $v) {
25117 $v['y'] = $this->tbrot_y0;
25118 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $v['y'], 'p' => $this->page];
25124 foreach ($this->tbrot_toc as $v) {
25125 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $this->page, 'link' => $v['link'], 'toc_id' => $v['toc_id']];
25126 $this->links[$v['link']][1] = $this->tbrot_y0;
25154 foreach ($l as $v) {
25155 $this->PageLinks[$p][] = $v;
25163 foreach ($l as $v) {
25164 $this->PageAnnots[$p][] = $v;
25172 foreach ($this->kwt_Reference as $v) {
25177 if ($this->Reference[$i]['t'] == $v['t']) {
25179 if (!in_array($v['op'], $this->Reference[$i]['p'])) {
25180 $this->Reference[$i]['p'][] = $v['op'];
25186 $this->Reference[] = ['t' => $v['t'], 'p' => [$v['op']]];
25194 foreach ($this->kwt_BMoutlines as $v) {
25195 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $v['y'], 'p' => $v['p']];
25202 foreach ($this->kwt_toc as $v) {
25203 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $v['p'], 'link' => $v['link'], 'toc_id' => $v['toc_id']];
25228 foreach ($l as $v) {
25231 $v[0] = $bx * Mpdf::SCALE;
25232 $v[1] = ($this->h - $by) * Mpdf::SCALE;
25233 $this->PageLinks[$p][] = $v;
25248 foreach ($l as $v) {
25251 if ($v['x'] < 0) {
25252 $v['x'] = -$bx;
25254 $v['x'] = $bx;
25256 $v['y'] = $by;
25257 $this->PageAnnots[$p][] = $v;
25265 foreach ($this->kwt_BMoutlines as $v) {
25266 if ($v['y'] != 0) {
25267 $v['y'] += $yadj;
25269 $this->BMoutlines[] = ['t' => $v['t'], 'l' => $v['l'], 'y' => $v['y'], 'p' => $this->page];
25275 foreach ($this->kwt_Reference as $v) {
25281 if ($this->Reference[$i]['t'] == $v['t']) {
25290 $this->Reference[] = ['t' => $v['t'], 'p' => [$this->page]];
25298 foreach ($this->kwt_toc as $v) {
25299 $this->tableOfContents->_toc[] = ['t' => $v['t'], 'l' => $v['l'], 'p' => $this->page, 'link' => $v['link'], 'toc_id' => $v['toc_id']];
25300 $this->links[$v['link']][0] = $this->page;
25301 $this->links[$v['link']][1] += $yadj;
26224 foreach ($arrcode["bcode"] as $v) {
26225 $bw = ($v["w"] * $xres);
26226 if ($v["t"]) {
26439 foreach ($supparrcode["bcode"] as $v) {
26440 $bw = ($v["w"] * $xres);
26441 if ($v["t"]) {
26549 foreach ($arrcode["bcode"] as $v) {
26550 $bw = ($v["w"] * $xres);
26551 if ($v["t"]) {
26552 $ypos = $y + $tlm + ($bch * $v['p'] / $arrcode['maxh']);
26553 $this->Rect($xpos, $ypos, $bw, ($v['h'] * $bch / $arrcode['maxh']), 'F');
27223 foreach ($xref as $v) {
27225 if ($v[0] > $ck) {
27226 $v[0] += $cv;
27229 $newxref .= sprintf('%010d', $v[0]) . ' ' . $v[1] . ' ' . $v[2] . " \n";