src/Mpdf.php
function Bookmark($txt, $level = 0, $y = 0)
	{
		$txt = $this->purify_utf8_text($txt);
		if ($this->text_input_as_HTML) {
			$txt = $this->all_entities_to_utf8($txt);
		}
		if ($y == -1) {
			if (!$this->ColActive) {
				$y = $this->y;
			} else {
				$y = $this->y0;
			} // If columns are on - mark top of columns
		}

		// else y is used as set, or =0 i.e. top of page
		// DIRECTIONALITY RTL
		$bmo = ['t' => $txt, 'l' => $level, 'y' => $y, 'p' => $this->page];

		if ($this->keep_block_together) {
			// do nothing
		} elseif ($this->table_rotate) {
			$this->tbrot_BMoutlines[] = $bmo;
		} elseif ($this->kwt) {
			$this->kwt_BMoutlines[] = $bmo;
		} elseif ($this->ColActive) {
			$this->col_BMoutlines[] = $bmo;
		} else {
			$this->BMoutlines[] = $bmo;
		}
	}
function Bookmark($txt, $level = 0, $y = 0)
	{
		$txt = $this->purify_utf8_text($txt);
		if ($this->text_input_as_HTML) {
			$txt = $this->all_entities_to_utf8($txt);
		}
		if ($y == -1) {
			if (!$this->ColActive) {
				$y = $this->y;
			} else {
				$y = $this->y0;
			} // If columns are on - mark top of columns
		}

		// else y is used as set, or =0 i.e. top of page
		// DIRECTIONALITY RTL
		$bmo = ['t' => $txt, 'l' => $level, 'y' => $y, 'p' => $this->page];

		if ($this->keep_block_together) {
			// do nothing
		} elseif ($this->table_rotate) {
			$this->tbrot_BMoutlines[] = $bmo;
		} elseif ($this->kwt) {
			$this->kwt_BMoutlines[] = $bmo;
		} elseif ($this->ColActive) {
			$this->col_BMoutlines[] = $bmo;
		} else {
			$this->BMoutlines[] = $bmo;
		}
	}
function Bookmark ( $ txt , $ level = 0 , $ y = 0 ) { $ txt = $ this -> purify_utf8_text ( $ txt ) ; if ( $ this -> text_input_as_HTML ) { $ txt = $ this -> all_entities_to_utf8 ( $ txt ) ; } if ( $ y == - 1 ) { if ( ! $ this -> ColActive ) { $ y = $ this -> y ; } else { $ y = $ this -> y0 ; } // If columns are on - mark top of columns } // else y is used as set, or =0 i.e. top of page // DIRECTIONALITY RTL $ bmo = [ 't' => $ txt , 'l' => $ level , 'y' => $ y , 'p' => $ this -> page ] ; if ( $ this -> keep_block_together ) { // do nothing } elseif ( $ this -> table_rotate ) { $ this -> tbrot_BMoutlines [ ] = $ bmo ; } elseif ( $ this -> kwt ) { $ this -> kwt_BMoutlines [ ] = $ bmo ; } elseif ( $ this -> ColActive ) { $ this -> col_BMoutlines [ ] = $ bmo ; } else { $ this -> BMoutlines [ ] = $ bmo ; } }
FROM class PDF_Bookmark
FROM class PDF_Bookmark