%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php
namespace Mpdf\Tag;
class A extends Tag
{
public function open($attr, &$ahtml, &$ihtml)
{
if (isset($attr['NAME']) && $attr['NAME'] != '') {
$e = '';
/* -- BOOKMARKS -- */
if ($this->mpdf->anchor2Bookmark) {
$objattr = [];
$objattr['CONTENT'] = htmlspecialchars_decode($attr['NAME'], ENT_QUOTES);
$objattr['type'] = 'bookmark';
if (!empty($attr['LEVEL'])) {
$objattr['bklevel'] = $attr['LEVEL'];
} else {
$objattr['bklevel'] = 0;
}
$e = "\xbb\xa4\xactype=bookmark,objattr=" . serialize($objattr) . "\xbb\xa4\xac";
}
/* -- END BOOKMARKS -- */
if ($this->mpdf->tableLevel) { // *TABLES*
$this->mpdf->_saveCellTextBuffer($e, '', $attr['NAME']); // *TABLES*
} // *TABLES*
else { // *TABLES*
$this->mpdf->_saveTextBuffer($e, '', $attr['NAME']); //an internal link (adds a space for recognition)
} // *TABLES*
}
if (isset($attr['HREF'])) {
$this->mpdf->InlineProperties['A'] = $this->mpdf->saveInlineProperties();
$properties = $this->cssManager->MergeCSS('INLINE', 'A', $attr);
if (!empty($properties)) {
$this->mpdf->setCSS($properties, 'INLINE');
}
$this->mpdf->HREF = $attr['HREF']; // mPDF 5.7.4 URLs
}
}
public function close(&$ahtml, &$ihtml)
{
$this->mpdf->HREF = '';
if (isset($this->mpdf->InlineProperties['A'])) {
$this->mpdf->restoreInlineProperties($this->mpdf->InlineProperties['A']);
}
unset($this->mpdf->InlineProperties['A']);
}
}