Lines Matching refs:mpdf
16 private $mpdf;
23 public function __construct(Mpdf $mpdf, BaseWriter $writer)
25 $this->mpdf = $mpdf;
31 $filter = $this->mpdf->compress ? '/Filter /FlateDecode ' : '';
33 foreach ($this->mpdf->images as $file => $info) {
37 $this->mpdf->images[$file]['n'] = $this->mpdf->n;
49 $this->writer->write('/SMask ' . ($this->mpdf->n - 1) . ' 0 R');
57 $this->writer->write('/ColorSpace [/ICCBased ' . ($this->mpdf->n + 1) . ' 0 R]');
59 if ($this->mpdf->PDFX || ($this->mpdf->PDFA && $this->mpdf->restrictColorSpace === 3)) {
62 $this->writer->write('/ColorSpace [/Indexed /DeviceRGB ' . (strlen($info['pal']) / 3 - 1) . ' ' . ($this->mpdf->n + 1) . ' 0 R]');
66 if ($this->mpdf->PDFA && $this->mpdf->restrictColorSpace !== 3) {
72 } elseif (($this->mpdf->PDFX || ($this->mpdf->PDFA && $this->mpdf->restrictColorSpace === 3)) && $info['cs'] === 'DeviceRGB') {
99 unset($this->mpdf->images[$file]['data']);
105 $icc = $this->mpdf->compress ? gzcompress($info['icc']) : $info['icc'];
111 $pal = $this->mpdf->compress ? gzcompress($info['pal']) : $info['pal'];