Lines Matching refs:writer

47 	private $writer;
104 public function __construct(Mpdf $mpdf, Otl $otl, ColorConverter $colorConverter, BaseWriter $writer, FormWriter $formWriter)
109 $this->writer = $writer;
332 $this->writer->write($ClipPath);
341 $this->writer->write('Q');
466 $this->writer->write(sprintf('q %.3F 0 0 %.3F %.3F %.3F cm /I%d Do Q', $objattr['INNER-WIDTH'] * Mpdf::SCALE, $objattr['INNER-HEIGHT'] * Mpdf::SCALE, $objattr['INNER-X'] * Mpdf::SCALE, ($this->mpdf->h - ($objattr['INNER-Y'] + $objattr['INNER-HEIGHT'] )) * Mpdf::SCALE, $objattr['ID']));
731 $this->writer->object();
733 $this->writer->write('<<');
734 $this->writer->write('/Type /Annot ');
735 $this->writer->write('/Subtype /Widget');
736 $this->writer->write('/NM ' . $this->writer->string(sprintf('%04u-%04u', $n, 3000 + $key++)));
737 $this->writer->write('/M ' . $this->writer->string('D:' . date('YmdHis')));
738 $this->writer->write('/Rect [0 0 0 0] ');
739 $this->writer->write('/FT /Btn ');
745 $this->writer->write('/Ff ' . $this->_setflag($flags));
750 // $optstr .= ' '.$this->writer->string($kid['OPT']).' ';
752 $this->writer->write('/Kids [ ' . $kstr . ' ] '); // 11 0 R 12 0 R etc.
753 // $this->writer->write('/Opt [ '.$optstr.' ] ');
761 $this->writer->write('/V /' . $state . ' ');
762 $this->writer->write('/DV /' . $state . ' ');
763 $this->writer->write('/T ' . $this->writer->string($name) . ' ');
764 $this->writer->write('>>');
765 $this->writer->write('endobj');
772 $this->writer->write('/AcroForm << /DA (/F1 0 Tf 0 g )');
773 $this->writer->write('/Q 0');
774 $this->writer->write('/Fields [' . $this->pdf_acro_array . ']');
782 $this->writer->write('/DR << /Font << ' . $f . ' >> >>');
785 $this->writer->write('/CO [' . $this->pdf_array_co . ']');
787 $this->writer->write('/NeedAppearances true');
788 $this->writer->write('>>');
796 $this->array_form_button_js[$this->writer->escape($name)] = [
806 $this->array_form_choice_js[$this->writer->escape($name)] = [
818 $this->array_form_text_js[$this->writer->escape($name)][$format] = ['js' => $j];
864 $value = $this->writer->utf8ToUtf16BigEndian($value);
867 $default = $this->writer->utf8ToUtf16BigEndian($default);
869 $title = $this->writer->utf8ToUtf16BigEndian($title);
961 $array['VAL'][$i] = $this->writer->utf8ToUtf16BigEndian($array['VAL'][$i]);
964 $array['OPT'][$i] = $this->writer->utf8ToUtf16BigEndian($array['OPT'][$i]);
1039 $this->form_button_icon[$this->writer->escape($name)] = [
1078 $ca = $this->writer->utf8ToUtf16BigEndian($ca);
1083 $rc = $this->writer->utf8ToUtf16BigEndian($rc);
1089 $ac = $this->writer->utf8ToUtf16BigEndian($ac);
1108 $title = $this->writer->utf8ToUtf16BigEndian($title);
1110 $uvalue = $this->writer->utf8ToUtf16BigEndian($value);
1112 $uvalue = $this->writer->utf8ToUtf16BigEndian($value);
1115 $value = $this->writer->utf8ToUtf16BigEndian($value);
1122 $uvalue = $this->writer->utf8ToUtf16BigEndian($uvalue);
1324 $this->writer->object();
1325 $this->writer->write('<<');
1326 $this->writer->write('/Type /XObject');
1327 $this->writer->write('/Subtype /Image');
1328 $this->writer->write('/BBox [0 0 1 1]');
1329 $this->writer->write('/Length ' . strlen($info['data']));
1330 $this->writer->write('/BitsPerComponent ' . $info['bpc']);
1333 $this->writer->write('/ColorSpace [/Indexed /DeviceRGB ' . (strlen($info['pal']) / 3 - 1) . ' ' . ($this->mpdf->n + 1) . ' 0 R]');
1335 $this->writer->write('/ColorSpace /' . $info['cs']);
1338 $this->writer->write('/Decode [1 0 1 0 1 0 1 0]');
1344 $this->writer->write('/Filter /' . $info['f']);
1348 $this->writer->write($info['parms']);
1351 $this->writer->write('/Width ' . $info['w']);
1352 $this->writer->write('/Height ' . $info['h']);
1353 $this->writer->write('>>');
1354 $this->writer->stream($info['data']);
1355 $this->writer->write('endobj');
1360 $this->writer->object();
1362 $this->writer->write('<<' . $filter . '/Length ' . strlen($pal) . '>>');
1363 $this->writer->stream($pal);
1364 $this->writer->write('endobj');
1373 $this->writer->object();
1381 $this->writer->write('<<');
1382 $this->writer->write('/Type /Annot ');
1383 $this->writer->write('/Subtype /Widget');
1384 $this->writer->write('/NM ' . $this->writer->string(sprintf('%04u-%04u', $n, 7000 + $form['n'])));
1385 $this->writer->write('/M ' . $this->writer->string('D:' . date('YmdHis')));
1386 $this->writer->write('/Rect [ ' . $this->_form_rect($form['x'], $form['y'], $form['w'], $form['h'], $hPt) . ' ]');
1388 $form['noprint'] ? $this->writer->write('/F 0 ') : $this->writer->write('/F 4 ');
1390 $this->writer->write('/FT /Btn ');
1391 $this->writer->write('/H /P ');
1394 $this->writer->write('/T ' . $this->writer->string($form['T']));
1397 $this->writer->write('/TU ' . $this->writer->string($form['TU']));
1427 $this->writer->write('/BS << /W 1 /S /S >>');
1428 $this->writer->write("/MK << $temp >>");
1429 $this->writer->write('/Ff ' . $this->_setflag($form['FF']));
1432 $this->writer->write('/V /' . $this->writer->escape($form['V']) . ' ');
1433 $this->writer->write('/DV /' . $this->writer->escape($form['V']) . ' ');
1434 $this->writer->write('/AS /' . $this->writer->escape($form['V']) . ' ');
1436 $this->writer->write('/AS /Off ');
1440 $this->writer->write('/DA (/F' . $this->mpdf->fonts['czapfdingbats']['i'] . ' 0 Tf ' . $radio_color . ' rg)');
1441 $this->writer->write('/AP << /N << /' . $this->writer->escape($form['V']) . ' ' . ($this->mpdf->n + 1) . ' 0 R /Off /Off >> >>');
1443 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$this->mpdf->CurrentFont['fontkey']]['i'] . ' 0 Tf ' . $radio_color . ' rg)');
1444 $this->writer->write('/AP << /N << /' . $this->writer->escape($form['V']) . ' ' . ($this->mpdf->n + 1) . ' 0 R /Off ' . ($this->mpdf->n + 2) . ' 0 R >> >>');
1447 $this->writer->write('/Opt [ ' . $this->writer->string($form['OPT']) . ' ' . $this->writer->string($form['OPT']) . ' ]');
1460 $this->writer->write('/Parent ' . $this->form_radio_groups[$form['T']]['obj_id'] . ' 0 R ');
1466 $this->writer->write('/BS << /W 1 /S /S >>');
1467 $this->writer->write('/MK << ' . $temp . ' >> ');
1471 $this->writer->write('/Ff ' . $this->_setflag($form['FF']));
1474 $this->writer->write('/DA (/F' . $this->mpdf->fonts['czapfdingbats']['i'] . ' 0 Tf ' . $radio_color . ' rg)');
1476 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$this->mpdf->CurrentFont['fontkey']]['i'] . ' 0 Tf ' . $radio_color . ' rg)');
1479 $this->writer->write('/AP << /N << /' . $this->writer->escape($form['V']) . ' ' . ($this->mpdf->n + 1) . ' 0 R /Off ' . ($this->mpdf->n + 2) . ' 0 R >> >>');
1482 $this->writer->write('/V /' . $this->writer->escape($form['V']) . ' ');
1483 $this->writer->write('/DV /' . $this->writer->escape($form['V']) . ' ');
1484 $this->writer->write('/AS /' . $this->writer->escape($form['V']) . ' ');
1486 $this->writer->write('/AS /Off ');
1488 $this->writer->write('/AP << /N << /' . $this->writer->escape($form['V']) . ' ' . ($this->mpdf->n + 1) . ' 0 R /Off ' . ($this->mpdf->n + 2) . ' 0 R >> >>');
1489 // $this->writer->write('/Opt [ '.$this->writer->string($form['OPT']).' '.$this->writer->string($form['OPT']).' ]');
1493 $temp .= $form['CA'] ? '/CA ' . $this->writer->string($form['CA']) . ' ' : '/CA ' . $this->writer->string($form['T']) . ' ';
1494 $temp .= $form['RC'] ? '/RC ' . $this->writer->string($form['RC']) . ' ' : '/RC ' . $this->writer->string($form['T']) . ' ';
1495 $temp .= $form['AC'] ? '/AC ' . $this->writer->string($form['AC']) . ' ' : '/AC ' . $this->writer->string($form['T']) . ' ';
1496 $this->writer->write("/BS << $bstemp >>");
1497 $this->writer->write('/MK << ' . $temp . ' >>');
1498 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$form['style']['font']]['i'] . ' ' . $form['style']['fontsize'] . ' Tf ' . $form['style']['fontcolor'] . ')');
1499 $this->writer->write('/AA << /D << /S /ResetForm /Flags 1 >> >>');
1501 $this->writer->write('/Ff ' . $this->_setflag($form['FF']));
1506 $temp .= $form['CA'] ? '/CA ' . $this->writer->string($form['CA']) . ' ' : '/CA ' . $this->writer->string($form['T']) . ' ';
1507 $temp .= $form['RC'] ? '/RC ' . $this->writer->string($form['RC']) . ' ' : '/RC ' . $this->writer->string($form['T']) . ' ';
1508 $temp .= $form['AC'] ? '/AC ' . $this->writer->string($form['AC']) . ' ' : '/AC ' . $this->writer->string($form['T']) . ' ';
1509 $this->writer->write("/BS << $bstemp >>");
1510 $this->writer->write("/MK << $temp >>");
1511 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$form['style']['font']]['i'] . ' ' . $form['style']['fontsize'] . ' Tf ' . $form['style']['fontcolor'] . ')');
1529 $this->writer->write('/AA << /D << /S /SubmitForm /F (' . $form['URL'] . ') /Flags ' . $flag . ' >> >>');
1531 $this->writer->write('/Ff ' . $this->_setflag($form['FF']));
1548 $temp .= $form['CA'] ? '/CA ' . $this->writer->string($form['CA']) . ' ' : '/CA ' . $this->writer->string($form['T']) . ' ';
1549 $temp .= $form['RC'] ? '/RC ' . $this->writer->string($form['RC']) . ' ' : '/RC ' . $this->writer->string($form['T']) . ' ';
1550 $temp .= $form['AC'] ? '/AC ' . $this->writer->string($form['AC']) . ' ' : '/AC ' . $this->writer->string($form['T']) . ' ';
1551 $this->writer->write("/BS << $bstemp >>");
1552 $this->writer->write("/MK << $temp >>");
1553 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$form['style']['font']]['i'] . ' ' . $form['style']['fontsize'] . ' Tf ' . $form['style']['fontcolor'] . ')');
1555 $this->writer->write('/Ff ' . $this->_setflag($form['FF']));
1559 $this->writer->write('/AA << /D ' . ($cc + $this->mpdf->n) . ' 0 R >>');
1564 $this->writer->write('>>');
1565 $this->writer->write('endobj');
1599 $this->writer->object();
1601 $this->writer->write('<<' . $filter . '/Length ' . strlen($p) . ' /Resources 2 0 R>>');
1602 $this->writer->stream($p);
1603 $this->writer->write('endobj');
1605 $this->writer->object();
1607 $this->writer->write('<<' . $filter . '/Length ' . strlen($p) . ' /Resources 2 0 R>>');
1608 $this->writer->stream($p);
1609 $this->writer->write('endobj');
1627 $this->writer->object();
1629 $this->writer->write('<<' . $filter . '/Length ' . strlen($p) . ' /Resources 2 0 R>>');
1630 $this->writer->stream($p);
1631 $this->writer->write('endobj');
1635 $this->writer->object();
1637 $this->writer->write('<<' . $filter . '/Length ' . strlen($p) . ' /Resources 2 0 R>>');
1638 $this->writer->stream($p);
1639 $this->writer->write('endobj');
1648 $this->writer->object();
1653 $this->writer->write('<<');
1654 $this->writer->write('/Type /Annot ');
1655 $this->writer->write('/Subtype /Widget');
1656 $this->writer->write('/Rect [ ' . $this->_form_rect($form['x'], $form['y'], $form['w'], $form['h'], $hPt) . ' ]');
1657 $this->writer->write('/F 4');
1658 $this->writer->write('/FT /Ch');
1660 $this->writer->write('/Q ' . $form['Q'] . '');
1665 $this->writer->write("/BS << $temp >>");
1670 $this->writer->write('/MK << ' . $temp . ' >>');
1672 $this->writer->write('/NM ' . $this->writer->string(sprintf('%04u-%04u', $n, 6000 + $form['n'])));
1673 $this->writer->write('/M ' . $this->writer->string('D:' . date('YmdHis')));
1675 $this->writer->write('/T ' . $this->writer->string($form['T']));
1676 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$form['style']['font']]['i'] . ' ' . $form['style']['fontsize'] . ' Tf ' . $form['style']['fontcolor'] . ')');
1681 $opt .= '[ ' . $this->writer->string($form['OPT']['VAL'][$i]) . ' ' . $this->writer->string($form['OPT']['OPT'][$i]) . ' ] ';
1683 $this->writer->write('/Opt [ ' . $opt . ']');
1689 $selectName = $this->writer->string($form['OPT']['VAL'][$selectVal]);
1695 $this->writer->write('/V ' . $selectItem . ' ');
1696 $this->writer->write('/DV ' . $selectItem . ' ');
1698 $this->writer->write('/V [' . $selectItem . '] ');
1699 $this->writer->write('/DV [' . $selectItem . '] ');
1701 $this->writer->write('/I [' . $selectIndex . '] ');
1705 $this->writer->write('/Ff ' . $this->_setflag($form['FF']) . ' ');
1710 $this->writer->write('/AA << /V ' . ($this->mpdf->n + 1) . ' 0 R >>');
1714 $this->writer->write('>>');
1715 $this->writer->write('endobj');
1730 $this->writer->object();
1735 $this->writer->write('<<');
1736 $this->writer->write('/Type /Annot ');
1737 $this->writer->write('/Subtype /Widget ');
1739 $this->writer->write('/Rect [ ' . $this->_form_rect($form['x'], $form['y'], $form['w'], $form['h'], $hPt) . ' ] ');
1740 $form['hidden'] ? $this->writer->write('/F 2 ') : $this->writer->write('/F 4 ');
1741 $this->writer->write('/FT /Tx ');
1743 $this->writer->write('/H /N ');
1744 $this->writer->write('/R 0 ');
1747 $this->writer->write('/Ff ' . $this->_setflag($form['FF']) . ' ');
1750 $this->writer->write('/MaxLen ' . $form['maxlen']);
1756 $this->writer->write("/BS << $temp >>");
1761 $this->writer->write('/MK <<' . $temp . ' >>');
1763 $this->writer->write('/T ' . $this->writer->string($form['T']));
1764 $this->writer->write('/TU ' . $this->writer->string($form['TU']));
1766 $this->writer->write('/V ' . $this->writer->string($form['V']));
1768 $this->writer->write('/DV ' . $this->writer->string($form['DV']));
1769 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$form['style']['font']]['i'] . ' ' . $form['style']['fontsize'] . ' Tf ' . $form['style']['fontcolor'] . ')');
1771 $this->writer->write('/Q ' . $form['Q'] . '');
1774 $this->writer->write('/NM ' . $this->writer->string(sprintf('%04u-%04u', $n, 5000 + $form['n'])));
1775 $this->writer->write('/M ' . $this->writer->string('D:' . date('YmdHis')));
1800 $this->writer->write('/AA << ' . $js_str . ' >>');
1803 $this->writer->write('>>');
1804 $this->writer->write('endobj');