Lines Matching defs:writer

21 	private $writer;
23 public function __construct(Mpdf $mpdf, BaseWriter $writer)
26 $this->writer = $writer;
35 $this->writer->object();
39 $this->writer->write('<</Type /XObject');
40 $this->writer->write('/Subtype /Image');
41 $this->writer->write('/Width ' . $info['w']);
42 $this->writer->write('/Height ' . $info['h']);
45 $this->writer->write('/Interpolate true'); // mPDF 6 - image interpolation shall be performed by a conforming reader
49 $this->writer->write('/SMask ' . ($this->mpdf->n - 1) . ' 0 R');
57 $this->writer->write('/ColorSpace [/ICCBased ' . ($this->mpdf->n + 1) . ' 0 R]');
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']);
70 $this->writer->write('/Decode [1 0 1 0 1 0 1 0]');
77 $this->writer->write('/BitsPerComponent ' . $info['bpc']);
80 $this->writer->write('/Filter /' . $info['f']);
84 $this->writer->write($info['parms']);
93 $this->writer->write('/Mask [' . $trns . ']');
96 $this->writer->write('/Length ' . strlen($info['data']) . '>>');
97 $this->writer->stream($info['data']);
101 $this->writer->write('endobj');
104 $this->writer->object();
106 $this->writer->write('<</N ' . $info['ch'] . ' ' . $filter . '/Length ' . strlen($icc) . '>>');
107 $this->writer->stream($icc);
108 $this->writer->write('endobj');
110 $this->writer->object();
112 $this->writer->write('<<' . $filter . '/Length ' . strlen($pal) . '>>');
113 $this->writer->stream($pal);
114 $this->writer->write('endobj');