Lines Matching defs:col

544 	var $col;
1510 $this->col = -1;
2347 $s .= 'q ' . $this->SetFColor($pb['col'], true) . "\n";
2349 if ($pb['col'] && $pb['col'][0] === '5') { // RGBa
2350 $s .= $this->SetAlpha(ord($pb['col'][4]) / 100, 'Normal', true, 'F') . "\n";
2351 } elseif ($pb['col'] && $pb['col'][0] === '6') { // CMYKa
2352 $s .= $this->SetAlpha(ord($pb['col'][5]) / 100, 'Normal', true, 'F') . "\n";
2586 $s .= 'q ' . $this->SetFColor($pb['col'], true) . "\n";
2587 if ($pb['col'][0] == 5) { // RGBa
2588 $s .= $this->SetAlpha(ord($pb['col'][4]) / 100, 'Normal', true, 'F') . "\n";
2589 } elseif ($pb['col'][0] == 6) { // CMYKa
2590 $s .= $this->SetAlpha(ord($pb['col'][5]) / 100, 'Normal', true, 'F') . "\n";
3356 function SetColor($col, $type = '')
3359 if (!$col) {
3362 if ($col[0] == 3 || $col[0] == 5) { // RGB / RGBa
3363 $out = sprintf('%.3F %.3F %.3F rg', ord($col[1]) / 255, ord($col[2]) / 255, ord($col[3]) / 255);
3364 } elseif ($col[0] == 1) { // GRAYSCALE
3365 $out = sprintf('%.3F g', ord($col[1]) / 255);
3366 } elseif ($col[0] == 2) { // SPOT COLOR
3367 $out = sprintf('/CS%d cs %.3F scn', ord($col[1]), ord($col[2]) / 100);
3368 } elseif ($col[0] == 4 || $col[0] == 6) { // CMYK / CMYKa
3369 $out = sprintf('%.3F %.3F %.3F %.3F k', ord($col[1]) / 100, ord($col[2]) / 100, ord($col[3]) / 100, ord($col[4]) / 100);
3380 function SetDColor($col, $return = false)
3382 $out = $this->SetColor($col, 'Draw');
3396 function SetFColor($col, $return = false)
3398 $out = $this->SetColor($col, 'Fill');
3413 function SetTColor($col, $return = false)
3415 $out = $this->SetColor($col, 'Text');
3429 $col = [];
3431 $col = $this->colorConverter->convert($r, $this->PDFAXwarnings);
3433 $col = $this->colorConverter->convert('rgb(' . $r . ',' . $g . ',' . $b . ')', $this->PDFAXwarnings);
3435 $col = $this->colorConverter->convert('cmyk(' . $r . ',' . $g . ',' . $b . ',' . $col4 . ')', $this->PDFAXwarnings);
3437 $out = $this->SetDColor($col, $return);
3444 $col = [];
3446 $col = $this->colorConverter->convert($r, $this->PDFAXwarnings);
3448 $col = $this->colorConverter->convert('rgb(' . $r . ',' . $g . ',' . $b . ')', $this->PDFAXwarnings);
3450 $col = $this->colorConverter->convert('cmyk(' . $r . ',' . $g . ',' . $b . ',' . $col4 . ')', $this->PDFAXwarnings);
3452 $out = $this->SetFColor($col, $return);
3459 $col = [];
3461 $col = $this->colorConverter->convert($r, $this->PDFAXwarnings);
3463 $col = $this->colorConverter->convert('rgb(' . $r . ',' . $g . ',' . $b . ')', $this->PDFAXwarnings);
3465 $col = $this->colorConverter->convert('cmyk(' . $r . ',' . $g . ',' . $b . ',' . $col4 . ')', $this->PDFAXwarnings);
3467 $out = $this->SetTColor($col, $return);
5364 $s .= $this->SetTColor($ts['col'], true) . "\n";
5365 if ($ts['col'][0] == 5 && ord($ts['col'][4]) < 100) { // RGBa
5366 $s .= $this->SetAlpha(ord($ts['col'][4]) / 100, 'Normal', true, 'F') . "\n";
5367 } elseif ($ts['col'][0] == 6 && ord($ts['col'][5]) < 100) { // CMYKa
5368 $s .= $this->SetAlpha(ord($ts['col'][5]) / 100, 'Normal', true, 'F') . "\n";
5369 } elseif ($ts['col'][0] == 1 && $ts['col'][2] == 1 && ord($ts['col'][3]) < 100) { // Gray
5370 $s .= $this->SetAlpha(ord($ts['col'][3]) / 100, 'Normal', true, 'F') . "\n";
7398 $col = $this->colorConverter->convert(0, $this->PDFAXwarnings);
7401 $col = $objattr['color'];
7428 $col,
7452 function ($col) {
7453 return intval(255 * floatval($col));
7461 function ($col) {
7462 return intval(255 * floatval($col));
7489 $col,
7505 $col = $this->colorConverter->convert(0, $this->PDFAXwarnings);
7507 $col = $objattr['color'];
7509 $this->SetTColor($col);
7536 $col = $this->colorConverter->convert(0, $this->PDFAXwarnings);
7538 $col = $objattr['colorarray'];
7570 $this->_printListBullet($this->x, $this->y, $size, $type, $col);
7572 $this->SetTColor($col);
7602 $col = $this->colorConverter->convert(0, $this->PDFAXwarnings);
7604 $col = $objattr['colorarray'];
7606 $this->SetTColor($col);
11938 $this->tableBackgrounds[$level * 9 + $leveladj][] = ['gradient' => false, 'x' => ($x + ($table['border_spacing_H'] / 2)), 'y' => ($y + ($table['border_spacing_V'] / 2)), 'w' => ($w - $table['border_spacing_H']), 'h' => ($h - $table['border_spacing_V']), 'col' => $color];
11945 $this->tableBackgrounds[$level * 9 + $leveladj][] = ['gradient' => false, 'x' => $x, 'y' => $y, 'w' => $w, 'h' => $h, 'col' => $color];
13554 if ($this->blockjustfinished && $this->cell[$this->row][$this->col]['s'] > 0) {
13556 if (!isset($this->cell[$this->row][$this->col]['maxs'])) {
13557 $this->cell[$this->row][$this->col]['maxs'] = $this->cell[$this->row][$this->col]['s'];
13558 } elseif ($this->cell[$this->row][$this->col]['maxs'] < $this->cell[$this->row][$this->col]['s']) {
13559 $this->cell[$this->row][$this->col]['maxs'] = $this->cell[$this->row][$this->col]['s'];
13561 $this->cell[$this->row][$this->col]['s'] = 0; // reset
13565 if (!isset($this->cell[$this->row][$this->col]['R']) || !$this->cell[$this->row][$this->col]['R']) {
13566 if (isset($this->cell[$this->row][$this->col]['s'])) {
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);
13572 $this->cell[$this->row][$this->col]['s'] += (isset($this->spanborddet['L']['w']) ? $this->spanborddet['L']['w'] : 0) + (isset($this->spanborddet['R']['w']) ? $this->spanborddet['R']['w'] : 0);
13578 if (substr($this->cell[$this->row][$this->col]['a'], 0, 1) == 'D') {
13580 $dp = $this->decimal_align[substr($this->cell[$this->row][$this->col]['a'], 0, 2)];
13590 if (!isset($this->table[$this->tableLevel][$this->tbctr[$this->tableLevel]]['decimal_align'][$this->col]['maxs0'])) {
13594 $this->table[$this->tableLevel][$this->tbctr[$this->tableLevel]]['decimal_align'][$this->col]['maxs0'] = $s0;
13596 $this->table[$this->tableLevel][$this->tbctr[$this->tableLevel]]['decimal_align'][$this->col]['maxs0'] = max($s0, $this->table[$this->tableLevel][$this->tbctr[$this->tableLevel]]['decimal_align'][$this->col]['maxs0']);
13599 if (!isset($this->table[$this->tableLevel][$this->tbctr[$this->tableLevel]]['decimal_align'][$this->col]['maxs1'])) {
13600 $this->table[$this->tableLevel][$this->tbctr[$this->tableLevel]]['decimal_align'][$this->col]['maxs1'] = $s1;
13602 $this->table[$this->tableLevel][$this->tbctr[$this->tableLevel]]['decimal_align'][$this->col]['maxs1'] = max($s1, $this->table[$this->tableLevel][$this->tbctr[$this->tableLevel]]['decimal_align'][$this->col]['maxs1']);
15878 $this->cell[$this->row][$this->col]['textbuffer'][] = $arr;
16102 $this->internallink[$vetor[7]] = ["Y" => $ily, "PAGE" => $this->page, "col" => $this->CurrCol];
16159 $cell = &$table['cells'][$objattr['row']][$objattr['col']];
16165 list($dummyx, $w) = $this->_tableGetWidth($table, $objattr['row'], $objattr['col']);
17207 if ($sh['col'][0] == 1) {
17209 if ($sh['col'][2] == 1) {
17210 $col1 = '1' . $sh['col'][1] . '1' . $sh['col'][3];
17212 $col1 = '1' . $sh['col'][1] . '1' . chr(100);
17214 $col2 = '1' . $sh['col'][1] . '1' . chr(0);
17215 } elseif ($sh['col'][0] == 4) { // CMYK
17217 $col1 = '6' . $sh['col'][1] . $sh['col'][2] . $sh['col'][3] . $sh['col'][4] . chr(100);
17218 $col2 = '6' . $sh['col'][1] . $sh['col'][2] . $sh['col'][3] . $sh['col'][4] . chr(0);
17219 } elseif ($sh['col'][0] == 5) { // RGBa
17221 $col1 = '5' . $sh['col'][1] . $sh['col'][2] . $sh['col'][3] . $sh['col'][4];
17222 $col2 = '5' . $sh['col'][1] . $sh['col'][2] . $sh['col'][3] . chr(0);
17223 } elseif ($sh['col'][0] == 6) { // CMYKa
17225 $col1 = '6' . $sh['col'][1] . $sh['col'][2] . $sh['col'][3] . $sh['col'][4] . $sh['col'][5];
17226 $col2 = '6' . $sh['col'][1] . $sh['col'][2] . $sh['col'][3] . $sh['col'][4] . chr(0);
17229 $col1 = '5' . $sh['col'][1] . $sh['col'][2] . $sh['col'][3] . chr(100);
17230 $col2 = '5' . $sh['col'][1] . $sh['col'][2] . $sh['col'][3] . chr(0);
17555 'col' => $this->blk[$blvl]['bgcolorarray'],
17568 'col' => '',
19548 // = total length of text approx (using $c['s']) in that column - used to approximately distribute col widths in _tableWidth
20112 // Allocate spare (more than col's minimum width) across the cols according to their approx total text length
20589 // By columns add up col height using ['h'] if set or ['mih'] if not
21068 'col' => $tbcol,
21230 'col' => $nc,
21269 $this->SetDColor($cbo['col']);
21840 $col = $numcols - $j - 1;
21842 $col -= ($cell['colspan'] - 1);
21850 $objattr['col'] = $col;
21852 $this->table[($this->tableLevel + 1)][$objattr['nestedcontent']]['nestedpos'][1] = $col;
21856 $row[$col] = $cells[$i][$j];
22302 $this->tableBackgrounds[$level * 9][] = ['gradient' => false, 'x' => $bx, 'y' => $by, 'w' => $bw, 'h' => $bh, 'col' => $color];
22636 $this->tableBackgrounds[$level * 9 + $leveladj][] = ['gradient' => false, 'x' => ($x + ($table['border_spacing_H'] / 2)), 'y' => ($y + ($table['border_spacing_V'] / 2)), 'w' => ($w - $table['border_spacing_H']), 'h' => ($h - $table['border_spacing_V']), 'col' => $color];
22643 $this->tableBackgrounds[$level * 9 + $leveladj][] = ['gradient' => false, 'x' => $x, 'y' => $y, 'w' => $w, 'h' => $h, 'col' => $color];
23221 $this->tableBackgrounds[$level * 9][] = ['gradient' => false, 'x' => $bx, 'y' => $by, 'w' => $bw, 'h' => $bh, 'col' => $color];
23480 $this->internallink[$uid] = ["Y" => $ily, "PAGE" => $this->page, "col" => $this->CurrCol];
24443 $this->columnbuffer[$key]['rel_y'] = $s['y'] + $this->ColDetails[$s['col']]['add_y'] - $this->y0;
24446 $this->columnbuffer[$key]['rel_y'] = $s['y'] + $this->ColDetails[$s['col']]['add_y'] - $this->y0;
24448 $this->columnbuffer[$key]['rel_y'] = $s['y'] + $this->ColDetails[$s['col']]['add_y'] - $this->y0;
24450 $this->columnbuffer[$key]['rel_y'] = $s['y'] + $this->ColDetails[$s['col']]['add_y'] - $this->y0;
24452 $this->columnbuffer[$key]['rel_y'] = $s['y'] + $this->ColDetails[$s['col']]['add_y'] - $this->y0;
24454 $this->columnbuffer[$key]['rel_y'] = $s['y'] + $this->ColDetails[$s['col']]['add_y'] - $this->y0;
24456 $this->columnbuffer[$key]['rel_y'] = $s['y'] + $this->ColDetails[$s['col']]['add_y'] - $this->y0;
24460 if (is_array($f) && isset($f['col'])) {
24461 $this->internallink[$key]['rel_y'] = $f['Y'] + $this->ColDetails[$f['col']]['add_y'] - $this->y0;
24526 $xadj = -(($newcolumn - $s['col']) * ($this->ColWidth + $this->ColGap)); // *OTL*
24529 $xadj = ($newcolumn - $s['col']) * ($this->ColWidth + $this->ColGap);
24560 if (isset($this->columnLinks[$s['col']][intval($s['x'])][intval($s['y'])])) {
24561 $ref = $this->columnLinks[$s['col']][intval($s['x'])][intval($s['y'])];
24564 unset($this->columnLinks[$s['col']][intval($s['x'])][intval($s['y'])]);
24567 if (isset($this->columnForms[$s['col']][intval($s['x'])][intval($s['y'])])) {
24568 $ref = $this->columnForms[$s['col']][intval($s['x'])][intval($s['y'])];
24571 unset($this->columnForms[$s['col']][intval($s['x'])][intval($s['y'])]);
24574 if (isset($this->columnAnnots[$s['col']][intval($s['x'])][intval($s['y'])])) {
24575 $ref = $this->columnAnnots[$s['col']][intval($s['x'])][intval($s['y'])];
24582 unset($this->columnAnnots[$s['col']][intval($s['x'])][intval($s['y'])]);
24618 if (isset($this->columnLinks[$s['col']][intval($s['x'])][intval($s['y'])])) {
24619 $ref = $this->columnLinks[$s['col']][intval($s['x'])][intval($s['y'])];
24622 unset($this->columnLinks[$s['col']][intval($s['x'])][intval($s['y'])]);
24625 if (isset($this->columnForms[$s['col']][intval($s['x'])][intval($s['y'])])) {
24626 $ref = $this->columnForms[$s['col']][intval($s['x'])][intval($s['y'])];
24629 unset($this->columnForms[$s['col']][intval($s['x'])][intval($s['y'])]);
24632 if (isset($this->columnAnnots[$s['col']][intval($s['x'])][intval($s['y'])])) {
24633 $ref = $this->columnAnnots[$s['col']][intval($s['x'])][intval($s['y'])];
24635 unset($this->columnAnnots[$s['col']][intval($s['x'])][intval($s['y'])]);
24642 if (is_array($f) && isset($f['col'])) {
24651 unset($f['col']);
24707 if ((isset($this->ColDetails[$s['col']]['max_bottom']) && $clb > $this->ColDetails[$s['col']]['max_bottom']) || !isset($this->ColDetails[$s['col']]['max_bottom'])) {
24708 $this->ColDetails[$s['col']]['max_bottom'] = $clb;
24722 if (isset($this->ColDetails[$s['col']]['max_bottom']) && $this->ColDetails[$s['col']]['max_bottom']) {
24723 $ratio = ($lowest_bottom_y - ($this->y0)) / ($this->ColDetails[$s['col']]['max_bottom'] - ($this->y0));
24733 if (isset($this->columnLinks[$s['col']][intval($s['x'])][intval($s['y'])])) {
24734 $ref = $this->columnLinks[$s['col']][intval($s['x'])][intval($s['y'])];
24737 unset($this->columnLinks[$s['col']][intval($s['x'])][intval($s['y'])]);
24740 if (isset($this->columnForms[$s['col']][intval($s['x'])][intval($s['y'])])) {
24741 $ref = $this->columnForms[$s['col']][intval($s['x'])][intval($s['y'])];
24744 unset($this->columnForms[$s['col']][intval($s['x'])][intval($s['y'])]);
24747 if (isset($this->columnAnnots[$s['col']][intval($s['x'])][intval($s['y'])])) {
24748 $ref = $this->columnAnnots[$s['col']][intval($s['x'])][intval($s['y'])];
24750 unset($this->columnAnnots[$s['col']][intval($s['x'])][intval($s['y'])]);
24780 if (isset($this->ColDetails[$s['col']]['max_bottom']) && $this->ColDetails[$s['col']]['max_bottom']) {
24781 $ratio = ($lowest_bottom_y - ($this->y0)) / ($this->ColDetails[$s['col']]['max_bottom'] - ($this->y0));
24833 if (isset($this->ColDetails[$s['col']]['max_bottom']) && $clb > $this->ColDetails[$s['col']]['max_bottom'] || (!isset($this->ColDetails[$s['col']]['max_bottom']) && $clb)) {
24834 $this->ColDetails[$s['col']]['max_bottom'] = $clb;
24871 if (isset($this->internallink[$key]['col'])) {
24872 unset($this->internallink[$key]['col']);
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)
26187 if ($col) {
26188 $this->SetDColor($col);
26189 $this->SetTColor($col);
26201 if (!$bgcol && !$col) { // fn. called directly - not via HTML
26217 if ($col) {
26218 $this->SetFColor($col);
26432 if ($col) {
26433 $this->SetFColor($col);
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)
26526 if ($col) {
26527 $this->SetDColor($col);
26528 $this->SetTColor($col);
26541 if ($col) {
26542 $this->SetFColor($col);