src/Mpdf.php
function writeHTMLHeaders()
	{

		if ($this->mirrorMargins && ($this->page) % 2 == 0) {
			$OE = 'E';
		} else {
			$OE = 'O';
		}

		if ($OE === 'E') {
			$this->saveHTMLHeader[$this->page][$OE]['html'] = $this->HTMLHeaderE['html'];
		} else {
			$this->saveHTMLHeader[$this->page][$OE]['html'] = $this->HTMLHeader['html'];
		}

		if ($this->forcePortraitHeaders && $this->CurOrientation == 'L' && $this->CurOrientation != $this->DefOrientation) {
			$this->saveHTMLHeader[$this->page][$OE]['rotate'] = true;
			$this->saveHTMLHeader[$this->page][$OE]['ml'] = $this->tMargin;
			$this->saveHTMLHeader[$this->page][$OE]['mr'] = $this->bMargin;
			$this->saveHTMLHeader[$this->page][$OE]['mh'] = $this->margin_header;
			$this->saveHTMLHeader[$this->page][$OE]['mf'] = $this->margin_footer;
			$this->saveHTMLHeader[$this->page][$OE]['pw'] = $this->h;
			$this->saveHTMLHeader[$this->page][$OE]['ph'] = $this->w;
		} else {
			$this->saveHTMLHeader[$this->page][$OE]['ml'] = $this->lMargin;
			$this->saveHTMLHeader[$this->page][$OE]['mr'] = $this->rMargin;
			$this->saveHTMLHeader[$this->page][$OE]['mh'] = $this->margin_header;
			$this->saveHTMLHeader[$this->page][$OE]['mf'] = $this->margin_footer;
			$this->saveHTMLHeader[$this->page][$OE]['pw'] = $this->w;
			$this->saveHTMLHeader[$this->page][$OE]['ph'] = $this->h;
		}
	}
function writeHTMLHeaders()
	{

		if ($this->mirrorMargins && ($this->page) % 2 == 0) {
			$OE = 'E';
		} else {
			$OE = 'O';
		}

		if ($OE === 'E') {
			$this->saveHTMLHeader[$this->page][$OE]['html'] = $this->HTMLHeaderE['html'];
		} else {
			$this->saveHTMLHeader[$this->page][$OE]['html'] = $this->HTMLHeader['html'];
		}

		if ($this->forcePortraitHeaders && $this->CurOrientation == 'L' && $this->CurOrientation != $this->DefOrientation) {
			$this->saveHTMLHeader[$this->page][$OE]['rotate'] = true;
			$this->saveHTMLHeader[$this->page][$OE]['ml'] = $this->tMargin;
			$this->saveHTMLHeader[$this->page][$OE]['mr'] = $this->bMargin;
			$this->saveHTMLHeader[$this->page][$OE]['mh'] = $this->margin_header;
			$this->saveHTMLHeader[$this->page][$OE]['mf'] = $this->margin_footer;
			$this->saveHTMLHeader[$this->page][$OE]['pw'] = $this->h;
			$this->saveHTMLHeader[$this->page][$OE]['ph'] = $this->w;
		} else {
			$this->saveHTMLHeader[$this->page][$OE]['ml'] = $this->lMargin;
			$this->saveHTMLHeader[$this->page][$OE]['mr'] = $this->rMargin;
			$this->saveHTMLHeader[$this->page][$OE]['mh'] = $this->margin_header;
			$this->saveHTMLHeader[$this->page][$OE]['mf'] = $this->margin_footer;
			$this->saveHTMLHeader[$this->page][$OE]['pw'] = $this->w;
			$this->saveHTMLHeader[$this->page][$OE]['ph'] = $this->h;
		}
	}
function writeHTMLHeaders ( ) { if ( $ this -> mirrorMargins && ( $ this -> page ) % 2 == 0 ) { $ OE = 'E' ; } else { $ OE = 'O' ; } if ( $ OE === 'E' ) { $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'html' ] = $ this -> HTMLHeaderE [ 'html' ] ; } else { $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'html' ] = $ this -> HTMLHeader [ 'html' ] ; } if ( $ this -> forcePortraitHeaders && $ this -> CurOrientation == 'L' && $ this -> CurOrientation != $ this -> DefOrientation ) { $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'rotate' ] = true ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'ml' ] = $ this -> tMargin ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'mr' ] = $ this -> bMargin ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'mh' ] = $ this -> margin_header ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'mf' ] = $ this -> margin_footer ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'pw' ] = $ this -> h ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'ph' ] = $ this -> w ; } else { $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'ml' ] = $ this -> lMargin ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'mr' ] = $ this -> rMargin ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'mh' ] = $ this -> margin_header ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'mf' ] = $ this -> margin_footer ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'pw' ] = $ this -> w ; $ this -> saveHTMLHeader [ $ this -> page ] [ $ OE ] [ 'ph' ] = $ this -> h ; } }
Called internally from Header
Called internally from Header