Lines Matching +defs:g +defs:e

516 	var $substitute;  // Array of substitution strings e.g. <ttz>112</ttz>
1249 $this->substitute = []; // Array of substitution strings e.g. <ttz>112</ttz>
1640 // e.g. A4-L = A4 landscape, A4-P = A4 portrait
1688 // $res = array of (Unicode) fonts to restrict to: e.g. norasi|norasiB - language specific
1847 * AFRelationship (optional): PDF/A-3 AFRelationship (e.g. "Alternative")
1849 * e.g. to associate 1 file:
2188 $orig_w = $sizesarray['WIDTH'] * Mpdf::SCALE; // in user units i.e. mm
2270 $g = $this->gradient->parseBackgroundGradient($this->bodyBackgroundGradient);
2271 if ($g) {
2272 $s .= $this->gradient->Gradient($clx, $cly, $clw, $clh, (isset($g['gradtype']) ? $g['gradtype'] : null), $g['stops'], $g['colorspace'], $g['coords'], $g['extend'], true);
2277 $g = $this->gradient->parseMozGradient($this->bodyBackgroundImage['gradient']);
2278 if ($g) {
2279 $s .= $this->gradient->Gradient($clx, $cly, $clw, $clh, $g['type'], $g['stops'], $g['colorspace'], $g['coords'], $g['extend'], true);
2929 // If next page already exists - i.e background /headers and footers already written
3365 $out = sprintf('%.3F g', ord($col[1]) / 255);
3373 } // e.g. rg => RG
3375 $out = preg_replace('/\s(rg|g|k)/', '', $out);
3426 function SetDrawColor($r, $g = -1, $b = -1, $col4 = -1, $return = false)
3430 if (($r == 0 and $g == 0 and $b == 0 && $col4 == -1) or $g == -1) {
3433 $col = $this->colorConverter->convert('rgb(' . $r . ',' . $g . ',' . $b . ')', $this->PDFAXwarnings);
3435 $col = $this->colorConverter->convert('cmyk(' . $r . ',' . $g . ',' . $b . ',' . $col4 . ')', $this->PDFAXwarnings);
3441 function SetFillColor($r, $g = -1, $b = -1, $col4 = -1, $return = false)
3445 if (($r == 0 and $g == 0 and $b == 0 && $col4 == -1) or $g == -1) {
3448 $col = $this->colorConverter->convert('rgb(' . $r . ',' . $g . ',' . $b . ')', $this->PDFAXwarnings);
3450 $col = $this->colorConverter->convert('cmyk(' . $r . ',' . $g . ',' . $b . ',' . $col4 . ')', $this->PDFAXwarnings);
3456 function SetTextColor($r, $g = -1, $b = -1, $col4 = -1, $return = false)
3460 if (($r == 0 and $g == 0 and $b == 0 && $col4 == -1) or $g == -1) {
3463 $col = $this->colorConverter->convert('rgb(' . $r . ',' . $g . ',' . $b . ')', $this->PDFAXwarnings);
3465 $col = $this->colorConverter->convert('cmyk(' . $r . ',' . $g . ',' . $b . ',' . $col4 . ')', $this->PDFAXwarnings);
4821 if ($lineBox && isset($lineBox['boxtop']) && $txt) { // i.e. always from WriteFlowingBlock/finishFlowingBlock (but not objects -
7340 $g = $this->gradient->parseMozGradient($objattr['GRADIENT-MASK']);
7341 if ($g) {
7342 $dummy = $this->gradient->Gradient($objattr['INNER-X'], $objattr['INNER-Y'], $obiw, $obih, $g['type'], $g['stops'], $g['colorspace'], $g['coords'], $g['extend'], true, true);
8146 // 8) Break at OBJECT (Break before all objects here - selected objects are moved forward to next line below e.g. dottab)
9377 // Used in Columns and keep-with-table i.e. "kwt"
9488 $e = error_get_last();
9489 if (($e['type'] < 2048 && $e['type'] != 8) || (intval($e['type']) & intval(ini_get("error_reporting")))) {
9491 sprintf('Error detected. PDF file generation aborted: %s', $e['message']),
9492 $e['type'],
9494 $e['file'],
9495 $e['line']
9725 // To rotate the other way i.e. Header to left of page:
9812 // To rotate the other way i.e. Header to left of page:
11075 } // ??? If lineheight is a factor e.g. 1.3 ?? use factor x 1em or ? use 'normal' lineheight * factor
11441 $str .= 'xxx'; // in case $str ends in / e.g. http://www.bbc.co.uk/
11442 $this->basepath = dirname($str) . "/"; // returns e.g. e.g. http://www.google.com/dir1/dir2/dir3/
11954 $g = $this->gradient->parseBackgroundGradient($tablehf['gradient']);
11955 if ($g) {
11968 $this->gradient->Gradient($px, $py, $pw, $ph, $g['type'], $g['stops'], $g['colorspace'], $g['coords'], $g['extend']);
11970 $this->tableBackgrounds[$level * 9 + 7][] = ['gradient' => true, 'x' => $px, 'y' => $py, 'w' => $pw, 'h' => $ph, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
11977 $g = $this->gradient->parseMozGradient($tablehf['background-image']['gradient']);
11978 if ($g) {
11991 $this->gradient->Gradient($px, $py, $pw, $ph, $g['type'], $g['stops'], $g['colorspace'], $g['coords'], $g['extend']);
11993 $this->tableBackgrounds[$level * 9 + 7][] = ['gradient' => true, 'x' => $px, 'y' => $py, 'w' => $pw, 'h' => $ph, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
12135 $g = $this->gradient->parseBackgroundGradient($content[$i][0]['trgradients']);
12136 if ($g) {
12149 $this->tableBackgrounds[$level * 9 + 4][] = ['gradient' => true, 'x' => $gx + ($table['border_spacing_H'] / 2), 'y' => $gy + ($table['border_spacing_V'] / 2), 'w' => $gw - $table['border_spacing_V'], 'h' => $gh - $table['border_spacing_H'], 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => $s];
12151 $this->tableBackgrounds[$level * 9 + 4][] = ['gradient' => true, 'x' => $gx, 'y' => $gy, 'w' => $gw, 'h' => $gh, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
12158 $g = $this->gradient->parseMozGradient($content[$i][0]['trbackground-images']['gradient']);
12159 if ($g) {
12172 $this->tableBackgrounds[$level * 9 + 4][] = ['gradient' => true, 'x' => $gx + ($table['border_spacing_H'] / 2), 'y' => $gy + ($table['border_spacing_V'] / 2), 'w' => $gw - $table['border_spacing_V'], 'h' => $gh - $table['border_spacing_H'], 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => $s];
12174 $this->tableBackgrounds[$level * 9 + 4][] = ['gradient' => true, 'x' => $gx, 'y' => $gy, 'w' => $gw, 'h' => $gh, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
13400 // ? more accurate regexp that allows e.g. <a name="Silly <name>">
13411 $e = $a[$i];
13425 $this->fixedPosBlock .= $e;
13428 if (strlen($e) == 0) {
13433 if (strlen(ltrim($e)) == 0) {
13436 if ($this->FontFamily != 'csymbol' && $this->FontFamily != 'czapfdingbats' && substr($e, 0, 1) == ' ') {
13438 $e = ltrim($e);
13444 $e = UtfString::strcode2utf($e);
13445 $e = $this->lesser_entity_decode($e);
13450 $cnt += $this->SubstituteCharsNonCore($a, $i, $e);
13453 $e = mb_convert_encoding($e, $this->mb_enc, 'UTF-8');
13455 $e = mb_strtoupper($e, $this->mb_enc);
13458 $e = mb_strtolower($e, $this->mb_enc);
13461 $e = mb_convert_case($e, MB_CASE_TITLE, "UTF-8");
13465 $cnt += $this->SubstituteCharsSIP($a, $i, $e);
13469 $cnt += $this->SubstituteCharsMB($a, $i, $e);
13473 $e = mb_strtoupper($e, $this->mb_enc);
13475 $e = mb_strtolower($e, $this->mb_enc);
13477 $e = mb_convert_case($e, MB_CASE_TITLE, "UTF-8");
13486 $e = $this->otl->applyOTL($e, $this->CurrentFont['useOTL']);
13488 $this->otl->removeChar($e, $this->OTLdata, "\xef\xbb\xbf"); // Remove ZWNBSP (also Byte order mark FEFF)
13492 $e = preg_replace("/[\xe2\x80\x8c\xe2\x80\x8d\xe2\x80\x8e\xe2\x80\x8f]/u", '', $e);
13493 $e = preg_replace("/[\xef\xbb\xbf]/u", '', $e); // Remove ZWNBSP (also Byte order mark FEFF)
13498 $es = explode('|', $e);
13499 $e = '';
13501 $e .= chr($val);
13510 $e = ltrim($e);
13514 $stringwidth = $this->GetStringWidth($e);
13519 $this->selectoption['SELECTED'] = $e;
13526 $this->selectoption['ITEMS'][] = ['exportValue' => $this->selectoption['currentVAL'], 'content' => $e, 'selected' => $this->selectoption['currentSEL']];
13532 $objattr['text'] = $e;
13548 $e = ltrim($e);
13553 if ($e || $e === '0') {
13567 $this->cell[$this->row][$this->col]['s'] += $this->GetStringWidth($e, false, $this->OTLdata, $this->textvar);
13569 $this->cell[$this->row][$this->col]['s'] = $this->GetStringWidth($e, false, $this->OTLdata, $this->textvar);
13576 $this->_saveCellTextBuffer($e, $this->HREF);
13581 $s = preg_split('/' . preg_quote($dp, '/') . '/', $e, 2); // ? needs to be /u if not core
13614 $e = ltrim($e);
13619 if ($e || $e === '0') {
13620 $this->_saveTextBuffer($e, $this->HREF);
13623 if ($e || $e === '0') {
13626 if (substr($e, -1, 1) == ' ' && !$this->ispre && $this->FontFamily != 'csymbol' && $this->FontFamily != 'czapfdingbats') {
13630 if (isset($e[0]) && $e[0] == '/') {
13631 $endtag = trim(strtoupper(substr($e, 1)));
13645 $this->fixedPosBlock .= '<' . $e . '>';
13721 if (strpos($e, ' ')) {
13722 $te = strtoupper(substr($e, 0, strpos($e, ' ')));
13724 $te = strtoupper($e);
13740 if (strpos($e, ' ')) {
13741 $te = strtoupper(substr($e, 0, strpos($e, ' ')));
13743 $te = strtoupper($e);
13745 $this->fixedPosBlock .= '<' . $e . '>';
13753 $e = preg_replace($regexp, "=\"\$1\"", $e);
13755 if (substr($e, 0, 10) != 'pageheader' && substr($e, 0, 10) != 'pagefooter' && substr($e, 0, 12) != 'tocpagebreak' && substr($e, 0, 10) != 'indexentry' && substr($e, 0, 8) != 'tocentry') { // mPDF 6 (ZZZ99H)
13757 $e = preg_replace($regexp, " \$1=\"\$2\"", $e);
13760 $e = preg_replace('/ (\\S+?)\s*=\s*"/i', " \\1=\"", $e);
13764 if ((stristr($e, "href=") !== false) or ( stristr($e, "src=") !== false)) {
13766 preg_match($regexp, $e, $auxiliararray);
13772 if (trim($path) != '' && !(stristr($e, "src=") !== false && substr($path, 0, 4) == 'var:') && substr($path, 0, 1) != '@') {
13777 $e = preg_replace($regexp, ' \\1="' . $path . '"', $e);
13787 preg_match_all('/\\S{1,32}=["][^"]*["]/', $e, $contents1);
13788 preg_match_all('/\\S{1,32}=[\'][^\']*[\']/i', $e, $contents2);
13791 preg_match('/\\S+/', $e, $a2);
13820 if (preg_match('/\/$/', $e)) {
13825 } // end of foreach($a as $i=>$e)
14638 if ($shrink_f != 1) { // i.e. autofit has resized the box
14648 if ($shrink_f != 1) { // i.e. autofit has resized the box
14655 if ($shrink_f != 1) { // i.e. autofit has resized the box
14697 if ($shrink_f != 1) { // i.e. autofit has resized the box
14711 if ($shrink_f != 1) { // i.e. autofit has resized the box
14739 if ($shrink_f != 1) { // i.e. autofit has resized the box
15346 $e = '';
15458 $e = "\xbb\xa4\xactype=image,objattr=" . serialize($objattr) . "\xbb\xa4\xac";
15459 $this->_saveTextBuffer($e);
15462 $e = $spacer;
15463 $this->_saveTextBuffer($e);
15489 $e = "\xbb\xa4\xactype=listmarker,objattr=" . serialize($objattr) . "\xbb\xa4\xac";
15490 $this->listitem = $this->_saveTextBuffer($e, '', '', true); // true returns array
15512 $e = $list_item_marker . $spacer;
15513 $this->_saveTextBuffer($e);
15527 $e = "\xbb\xa4\xactype=listmarker,objattr=" . serialize($objattr) . "\xbb\xa4\xac";
15528 $this->listitem = $this->_saveTextBuffer($e, '', '', true); // true returns array
15544 $e = $num . $this->list_number_suffix . $spacer;
15545 $this->_saveTextBuffer($e);
15548 // REPLACE MIRRORED RTL $this->list_number_suffix e.g. ) -> ( (NB could use Ucdn::$mirror_pairs)
15566 $e = "\xbb\xa4\xactype=listmarker,objattr=" . serialize($objattr) . "\xbb\xa4\xac";
15568 $this->listitem = $this->_saveTextBuffer($e, '', '', true); // true returns array
15585 $e = $a[$j];
15586 if (!$e) {
15589 if ($e[0] == '/') { // end tag
15590 $e = strtoupper(substr($e, 1));
15591 if ($e == 'OL' || $e == 'UL') {
15598 if (strpos($e, ' ')) {
15599 $e = substr($e, 0, strpos($e, ' '));
15601 $e = strtoupper($e);
15602 if ($e == 'LI') {
15606 } elseif ($e == 'OL' || $e == 'UL') {
15781 // e.g. Latin script when useOTL set as 0x80
15844 // e.g. Latin script when useOTL set as 0x80
15914 // Block-align is set by e.g. <.. align="center"> Takes priority for this block but not inherited
16132 if (strpos($vetor[1], ".") === false && strpos($vetor[1], "@") !== 0) { // assuming every external link has a dot indicating extension (e.g: .html .txt .zip www.somewhere.com etc.)
16245 // i.e. if second inline image on line is higher than first and forces new page
17578 $g = $this->gradient->parseBackgroundGradient($this->blk[$blvl]['gradient']);
17579 if ($g) {
17588 'gradtype' => $g['type'],
17589 'stops' => $g['stops'],
17590 'colorspace' => $g['colorspace'],
17591 'coords' => $g['coords'],
17592 'extend' => $g['extend'],
17602 $g = $this->gradient->parseMozGradient($this->blk[$blvl]['background-image']['gradient']);
17603 if ($g) {
17658 'gradtype' => $g['type'],
17659 'stops' => $g['stops'],
17660 'colorspace' => $g['colorspace'],
17661 'coords' => $g['coords'],
17662 'extend' => $g['extend'],
18132 // Set font size first so that e.g. MARGIN 0.83em works on font size for this element
18510 case 'VERTICAL-ALIGN': // super and sub only dealt with here e.g. <SUB> and <SUP>
19012 // Set multiple styles at one $str e.g. "BI"
20027 // If it is less than 1/20th of the remaining page height to finish the DIV (i.e. DIV padding + table bottom margin) then allow for this
20085 // If the table width is already set to the maximum width (e.g. nested table), then use maximum column widths exactly
20134 $wi = ($table['w'] - ($wis + $tblbw)); // i.e. extra space to distribute
20153 $wi = ($table['w'] - ($wis + $tblbw)); // i.e. extra space to distribute
20328 // If it is less than 1/20th of the remaining page height to finish the DIV (i.e. DIV padding + table bottom margin)
20550 // i.e. for one or more rows, the only cells (explicit) in that row have rowspan>1
22308 $g = $this->gradient->parseBackgroundGradient($table['gradient']);
22309 if ($g) {
22310 $this->tableBackgrounds[$level * 9 + 1][] = ['gradient' => true, 'x' => $bx, 'y' => $by, 'w' => $bw, 'h' => $bh, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
22316 $g = $this->gradient->parseMozGradient($table['background-image']['gradient']);
22317 if ($g) {
22318 $this->tableBackgrounds[$level * 9 + 1][] = ['gradient' => true, 'x' => $bx, 'y' => $by, 'w' => $bw, 'h' => $bh, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
22651 $g = $this->gradient->parseBackgroundGradient($cell['gradient']);
22652 if ($g) {
22665 $this->gradient->Gradient($px, $py, $pw, $ph, $g['type'], $g['stops'], $g['colorspace'], $g['coords'], $g['extend']);
22667 $this->tableBackgrounds[$level * 9 + 7][] = ['gradient' => true, 'x' => $px, 'y' => $py, 'w' => $pw, 'h' => $ph, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
22674 $g = $this->gradient->parseMozGradient($cell['background-image']['gradient']);
22675 if ($g) {
22688 $this->gradient->Gradient($px, $py, $pw, $ph, $g['type'], $g['stops'], $g['colorspace'], $g['coords'], $g['extend']);
22690 $this->tableBackgrounds[$level * 9 + 7][] = ['gradient' => true, 'x' => $px, 'y' => $py, 'w' => $pw, 'h' => $ph, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
22998 $g = $this->gradient->parseBackgroundGradient($table['trgradients'][$i]);
22999 if ($g) {
23012 $this->tableBackgrounds[$level * 9 + 4][] = ['gradient' => true, 'x' => $gx + ($table['border_spacing_H'] / 2), 'y' => $gy + ($table['border_spacing_V'] / 2), 'w' => $gw - $table['border_spacing_V'], 'h' => $gh - $table['border_spacing_H'], 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => $s];
23014 $this->tableBackgrounds[$level * 9 + 4][] = ['gradient' => true, 'x' => $gx, 'y' => $gy, 'w' => $gw, 'h' => $gh, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
23020 $g = $this->gradient->parseMozGradient($table['trbackground-images'][$i]['gradient']);
23021 if ($g) {
23034 $this->tableBackgrounds[$level * 9 + 4][] = ['gradient' => true, 'x' => $gx + ($table['border_spacing_H'] / 2), 'y' => $gy + ($table['border_spacing_V'] / 2), 'w' => $gw - $table['border_spacing_V'], 'h' => $gh - $table['border_spacing_H'], 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => $s];
23036 $this->tableBackgrounds[$level * 9 + 4][] = ['gradient' => true, 'x' => $gx, 'y' => $gy, 'w' => $gw, 'h' => $gh, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
23227 $g = $this->gradient->parseBackgroundGradient($table['gradient']);
23228 if ($g) {
23229 $this->tableBackgrounds[$level * 9 + 1][] = ['gradient' => true, 'x' => $bx, 'y' => $by, 'w' => $bw, 'h' => $bh, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
23235 $g = $this->gradient->parseMozGradient($table['background-image']['gradient']);
23236 if ($g) {
23237 $this->tableBackgrounds[$level * 9 + 1][] = ['gradient' => true, 'x' => $bx, 'y' => $by, 'w' => $bw, 'h' => $bh, 'gradtype' => $g['type'], 'stops' => $g['stops'], 'colorspace' => $g['colorspace'], 'coords' => $g['coords'], 'extend' => $g['extend'], 'clippath' => ''];
23342 // else y is used as set, or =0 i.e. top of page
24026 // e.g. "elephant 73, 97-99" = elephant[$spacer]73[$sep]97[$joiner]99
24027 // $subEntrySeparator separates main and subentry (if $this->indexUseSubentries == false;) e.g.
24029 // $subEntryInset specifies what precedes a subentry (if $this->indexUseSubentries == true;) e.g.
24048 $this->Reference[$i]['uf'] = $txt; // Unformatted e.g. pure utf-8 encoded characters, no mark-up/tags
24107 // Sub-entries e.g. Mammals:elephant
24108 // But allow for tags e.g. <b>Mammal</b>:elephants
24112 foreach ($a as $k => $e) {
24114 if (strpos($e, ':') !== false) { // == SubEntry
24118 list($txtmain, $sub) = preg_split('/[:]/', $e, 2);
24125 $e = $sub; // Only replace first one
24127 $e = preg_replace('/[:]/', $subEntrySeparator, $e, 1); // Only replace first one
24132 $txt .= $e;
24732 // otherwise triggers for all entries in column buffer (.e.g. formatting) and makes below adjustments more than once
25509 // PDF comes before PDI to close isolate-override (e.g. "LRILROPDFPDI")
25520 // LRI comes before LRO to open isolate-override (e.g. "LRILROPDFPDI")
25560 foreach ($a as $i => $e) {
25562 $e = strtr($e, $this->substitute);
25564 $html .= $e;
25905 array_splice($writehtml_a, $writehtml_i + 1, 0, [$font, implode('|', $repl), '/' . $font, $m[3]]); // e.g. <tts>
26023 * Only exception - leaves low ASCII entities e.g. &lt; &amp; etc.
26732 foreach ($a as $i => $e) {
26737 $a[$i] = $e;
26741 $e = UtfString::strcode2utf($e);
26742 $e = $this->lesser_entity_decode($e);
26744 $earr = $this->UTF8StringToArray($e, false);
26837 $a[$i] = '<' . $e . '>';
26850 function columnAdjustAdd($type, $k, $xadj, $yadj, $a, $b, $c = 0, $d = 0, $e = 0, $f = 0)
26878 return sprintf('q %.3F 0 0 %.3F %.3F %.3F', $a, $b, $c, $d) . ' cm /' . $e;
26893 $e += ($xadj * $k);
26896 return sprintf('%.3F %.3F %.3F %.3F %.3F %.3F', $a, $b, $c, $d, $e, $f) . ' c';