Lines Matching refs:info

33 		foreach ($this->mpdf->images as $file => $info) {
41 $this->writer->write('/Width ' . $info['w']);
42 $this->writer->write('/Height ' . $info['h']);
44 if (isset($info['interpolation']) && $info['interpolation']) {
48 if (isset($info['masked'])) {
54 if (isset($info['icc']) && ( $info['icc'] !== false)) {
58 } elseif ($info['cs'] === 'Indexed') {
62 $this->writer->write('/ColorSpace [/Indexed /DeviceRGB ' . (strlen($info['pal']) / 3 - 1) . ' ' . ($this->mpdf->n + 1) . ' 0 R]');
64 $this->writer->write('/ColorSpace /' . $info['cs']);
65 if ($info['cs'] === 'DeviceCMYK') {
69 if ($info['type'] === 'jpg') {
72 } elseif (($this->mpdf->PDFX || ($this->mpdf->PDFA && $this->mpdf->restrictColorSpace === 3)) && $info['cs'] === 'DeviceRGB') {
77 $this->writer->write('/BitsPerComponent ' . $info['bpc']);
79 if (isset($info['f']) && $info['f']) {
80 $this->writer->write('/Filter /' . $info['f']);
83 if (isset($info['parms'])) {
84 $this->writer->write($info['parms']);
87 if (isset($info['trns']) && is_array($info['trns'])) {
89 $maskCount = count($info['trns']);
91 $trns .= $info['trns'][$i] . ' ' . $info['trns'][$i] . ' ';
96 $this->writer->write('/Length ' . strlen($info['data']) . '>>');
97 $this->writer->stream($info['data']);
105 $icc = $this->mpdf->compress ? gzcompress($info['icc']) : $info['icc'];
106 $this->writer->write('<</N ' . $info['ch'] . ' ' . $filter . '/Length ' . strlen($icc) . '>>');
109 } elseif ($info['cs'] === 'Indexed') { // Palette
111 $pal = $this->mpdf->compress ? gzcompress($info['pal']) : $info['pal'];