Lines Matching refs:write

146 		$this->writer->write('<</Type/Metadata/Subtype/XML/Length ' . strlen($m) . '>>');
148 $this->writer->write('endobj');
153 $this->writer->write('/Producer ' . $this->writer->utf16BigEndianTextString('mPDF' . ($this->mpdf->exposeVersion ? (' ' . $this->getVersionString()) : '')));
156 $this->writer->write('/Title ' . $this->writer->utf16BigEndianTextString($this->mpdf->title));
160 $this->writer->write('/Subject ' . $this->writer->utf16BigEndianTextString($this->mpdf->subject));
164 $this->writer->write('/Author ' . $this->writer->utf16BigEndianTextString($this->mpdf->author));
168 $this->writer->write('/Keywords ' . $this->writer->utf16BigEndianTextString($this->mpdf->keywords));
172 $this->writer->write('/Creator ' . $this->writer->utf16BigEndianTextString($this->mpdf->creator));
176 $this->writer->write('/' . $key . ' ' . $this->writer->utf16BigEndianTextString($value));
180 $this->writer->write('/CreationDate ' . $this->writer->string('D:' . $now));
181 $this->writer->write('/ModDate ' . $this->writer->string('D:' . $now));
183 $this->writer->write('/Trapped/False');
184 $this->writer->write('/GTS_PDFXVersion(PDF/X-1a:2003)');
192 $this->writer->write('<</Type /OutputIntent');
197 $this->writer->write('/S /GTS_PDFA1');
199 $this->writer->write('/Info (' . $ICCProfile . ')');
200 $this->writer->write('/OutputConditionIdentifier (Custom)');
201 $this->writer->write('/OutputCondition ()');
203 $this->writer->write('/Info (sRGB IEC61966-2.1)');
204 $this->writer->write('/OutputConditionIdentifier (sRGB IEC61966-2.1)');
205 $this->writer->write('/OutputCondition ()');
207 $this->writer->write('/DestOutputProfile ' . ($this->mpdf->n + 1) . ' 0 R');
209 $this->writer->write('/S /GTS_PDFX');
211 $this->writer->write('/Info (' . $ICCProfile . ')');
212 $this->writer->write('/OutputConditionIdentifier (Custom)');
213 $this->writer->write('/OutputCondition ()');
214 $this->writer->write('/DestOutputProfile ' . ($this->mpdf->n + 1) . ' 0 R');
216 $this->writer->write('/Info (CGATS TR 001)');
217 $this->writer->write('/OutputConditionIdentifier (CGATS TR 001)');
218 $this->writer->write('/OutputCondition (CGATS TR 001 (SWOP))');
219 $this->writer->write('/RegistryName (http://www.color.org)');
222 $this->writer->write('>>');
223 $this->writer->write('endobj');
244 $this->writer->write('<<');
247 $this->writer->write('/N 4');
249 $this->writer->write('/N 3');
253 $this->writer->write('/Filter /FlateDecode ');
256 $this->writer->write('/Length ' . strlen($s) . '>>');
258 $this->writer->write('endobj');
272 $this->writer->write('<</F ' . $this->writer->string($file['name']));
274 $this->writer->write('/Desc ' . $this->writer->string($file['description']));
276 $this->writer->write('/Type /Filespec');
277 $this->writer->write('/EF <<');
278 $this->writer->write('/F ' . ($this->mpdf->n + 1) . ' 0 R');
279 $this->writer->write('/UF ' . ($this->mpdf->n + 1) . ' 0 R');
280 $this->writer->write('>>');
282 $this->writer->write('/AFRelationship /' . $file['AFRelationship']);
284 $this->writer->write('/UF ' . $this->writer->string($file['name']));
285 $this->writer->write('>>');
286 $this->writer->write('endobj');
301 $this->writer->write('<</Type /EmbeddedFile');
303 $this->writer->write('/Subtype /' . $this->writer->escapeSlashes($file['mime']));
305 $this->writer->write('/Length '.strlen($filestream));
306 $this->writer->write('/Filter /FlateDecode');
308 $this->writer->write('/Params <</ModDate '.$this->writer->string('D:' . PdfDate::format(filemtime($file['path']))).' >>');
310 $this->writer->write('/Params <</ModDate '.$this->writer->string('D:' . PdfDate::format(time())).' >>');
313 $this->writer->write('>>');
315 $this->writer->write('endobj');
324 $this->writer->write('[' . implode(' ', $refs) . ']');
325 $this->writer->write('endobj');
332 $this->writer->write('/Type /Catalog');
333 $this->writer->write('/Pages 1 0 R');
336 $this->writer->write('/OpenAction [3 0 R /Fit]');
338 $this->writer->write('/OpenAction [3 0 R /FitH null]');
340 $this->writer->write('/OpenAction [3 0 R /XYZ null null 1]');
342 $this->writer->write('/OpenAction [3 0 R /XYZ null null ' . ($this->mpdf->ZoomMode / 100) . ']');
344 // do not write any zoom mode / OpenAction
346 $this->writer->write('/OpenAction [3 0 R /XYZ null null null]');
350 $this->writer->write('/PageLayout /SinglePage');
352 $this->writer->write('/PageLayout /OneColumn');
354 $this->writer->write('/PageLayout /TwoColumnLeft');
356 $this->writer->write('/PageLayout /TwoColumnRight');
359 $this->writer->write('/PageLayout /TwoColumnRight');
361 $this->writer->write('/PageLayout /TwoColumnLeft');
367 $this->writer->write('/Outlines ' . $this->mpdf->OutlineRoot . ' 0 R');
368 $this->writer->write('/PageMode /UseOutlines');
373 $this->writer->write('/PageMode /FullScreen');
378 $this->writer->write('/Metadata ' . $this->mpdf->MetadataRoot . ' 0 R');
383 $this->writer->write('/OutputIntents [' . $this->mpdf->OutputIntentRoot . ' 0 R]');
388 $this->writer->write('/AF '. $this->mpdf->associatedFilesRoot .' 0 R');
394 $this->writer->write('/Names << /EmbeddedFiles << /Names [' . implode(' ', $names) . '] >> >>');
403 $this->writer->write('/Names << /JavaScript ' . $this->mpdf->n_js . ' 0 R >> ');
408 $this->writer->write('/ViewerPreferences<<');
411 $this->writer->write('/HideMenubar true');
415 $this->writer->write('/HideToolbar true');
419 $this->writer->write('/HideWindowUI true');
423 $this->writer->write('/DisplayDocTitle true');
427 $this->writer->write('/CenterWindow true');
431 $this->writer->write('/FitWindow true');
436 $this->writer->write('/PrintScaling /None');
440 $this->writer->write('/Direction /R2L');
445 // if ($this->mpdf->DefOrientation=='P') $this->writer->write('/Duplex /DuplexFlipShortEdge');
446 $this->writer->write('/Duplex /DuplexFlipLongEdge'); // PDF v1.7+
449 $this->writer->write('>>');
453 $this->writer->write('/PageMode /UseOC');
488 $this->writer->write("/OCProperties <</OCGs [$p $v $h $lall] /D <</ON [$p $l] /OFF [$v $h $loff] ");
489 $this->writer->write("/Order [$v $p $h $lall] ");
492 $this->writer->write("/AS [$as] ");
495 $this->writer->write('>>>>');
567 $this->writer->write($annot);
568 $this->writer->write('endobj');
704 $this->writer->write($annot);
705 $this->writer->write('endobj');
716 $this->writer->write('<</Type /EmbeddedFile');
717 $this->writer->write('/Length ' . strlen($filestream));
718 $this->writer->write('/Filter /FlateDecode');
719 $this->writer->write('>>');
721 $this->writer->write('endobj');
754 $this->writer->write($annot);
755 $this->writer->write('endobj');
776 $this->writer->write('/Filter /Standard');
778 $this->writer->write('/V 2');
779 $this->writer->write('/R 3');
780 $this->writer->write('/Length 128');
782 $this->writer->write('/V 1');
783 $this->writer->write('/R 2');
785 $this->writer->write('/O (' . $this->writer->escape($this->protection->getOValue()) . ')');
786 $this->writer->write('/U (' . $this->writer->escape($this->protection->getUValue()) . ')');
787 $this->writer->write('/P ' . $this->protection->getPValue());
792 $this->writer->write('/Size ' . ($this->mpdf->n + 1));
793 $this->writer->write('/Root ' . $this->mpdf->n . ' 0 R');
794 $this->writer->write('/Info ' . $this->mpdf->InfoRoot . ' 0 R');
797 $this->writer->write('/Encrypt ' . $this->mpdf->enc_obj_id . ' 0 R');
798 $this->writer->write('/ID [<' . $this->protection->getUniqid() . '> <' . $this->protection->getUniqid() . '>]');
801 $this->writer->write('/ID [<' . $uniqid . '> <' . $uniqid . '>]');