Lines Matching refs:pl

516 					foreach ($this->mpdf->PageLinks[$n] as $key => $pl) {
521 $rect = sprintf('%.3F %.3F %.3F %.3F', $pl[0], $pl[1], $pl[0] + $pl[2], $pl[1] - $pl[3]);
525 // $annot .= ' /Contents ' . $this->writer->utf16BigEndianTextString($pl[4]);
543 if (strpos($pl[4], '@') === 0) {
545 $p = substr($pl[4], 1);
550 } elseif (is_string($pl[4])) {
552 $annot .= ' /A <</S /URI /URI ' . $this->writer->string($pl[4]) . '>> >>';
556 $l = $this->mpdf->links[$pl[4]];
576 foreach ($this->mpdf->PageAnnots[$n] as $key => $pl) {
578 $fileAttachment = (bool) $pl['opt']['file'];
588 $pl['opt'] = array_change_key_case($pl['opt'], CASE_LOWER);
589 $x = $pl['x'];
597 $b = $hPt - ($pl['y'] * Mpdf::SCALE);
604 if ($pl['opt']['icon'] === 'Paperclip') {
607 } elseif ($pl['opt']['icon'] === 'Tag') {
610 } elseif ($pl['opt']['icon'] === 'Graph') {
619 $f = $pl['opt']['file'];
637 $annot .= ' /Contents ' . $this->writer->utf16BigEndianTextString($pl['txt']);
647 } elseif ($pl['opt']['ca'] > 0) {
648 $annot .= ' /CA ' . $pl['opt']['ca'];
652 if (isset($pl['opt']['c']) && $pl['opt']['c']) {
653 $col = $pl['opt']['c'];
671 if (isset($pl['opt']['t']) && is_string($pl['opt']['t'])) {
672 $annot .= ' /T ' . $this->writer->utf16BigEndianTextString($pl['opt']['t']);
681 if (isset($pl['opt']['icon']) && in_array($pl['opt']['icon'], $iconsapp)) {
682 $annot .= ' /Name /' . $pl['opt']['icon'];
691 if (!$this->mpdf->PDFA && !$this->mpdf->PDFX && isset($pl['opt']['subj'])) {
692 $annot .= ' /Subj ' . $this->writer->utf16BigEndianTextString($pl['opt']['subj']);
694 if (!empty($pl['opt']['popup'])) {
702 $annot .= ' /P ' . $pl['pageobj'] . ' 0 R';
709 $file = @file_get_contents($pl['opt']['file']);
711 throw new \Mpdf\MpdfException('mPDF Error: Cannot access file attachment - ' . $pl['opt']['file']);
723 } elseif (!empty($pl['opt']['popup'])) {
726 if (is_array($pl['opt']['popup']) && isset($pl['opt']['popup'][0])) {
727 $x = $pl['opt']['popup'][0] * Mpdf::SCALE;
729 $x = $pl['x'] * Mpdf::SCALE;
731 if (is_array($pl['opt']['popup']) && isset($pl['opt']['popup'][1])) {
732 $y = $hPt - ($pl['opt']['popup'][1] * Mpdf::SCALE);
734 $y = $hPt - ($pl['y'] * Mpdf::SCALE);
736 if (is_array($pl['opt']['popup']) && isset($pl['opt']['popup'][2])) {
737 $w = $pl['opt']['popup'][2] * Mpdf::SCALE;
741 if (is_array($pl['opt']['popup']) && isset($pl['opt']['popup'][3])) {
742 $h = $pl['opt']['popup'][3] * Mpdf::SCALE;