public function setPageOrientation(string $orientation): PdfInterface
    {
        $this->setProperty('pageOrientation', strtoupper($orientation[0]));

        $this->pageOrientation === 'L'
            ? $this->setProperty('pageFormat', $this->pageSize . '-' . $this->pageOrientation)
            : $this->setProperty('pageFormat', $this->pageSize);

        return $this;
    }
public function setPageOrientation(string $orientation): PdfInterface
    {
        $this->setProperty('pageOrientation', strtoupper($orientation[0]));

        $this->pageOrientation === 'L'
            ? $this->setProperty('pageFormat', $this->pageSize . '-' . $this->pageOrientation)
            : $this->setProperty('pageFormat', $this->pageSize);

        return $this;
    }
public function setPageOrientation ( string $ orientation ) : PdfInterface { $ this -> setProperty ( 'pageOrientation' , strtoupper ( $ orientation [ 0 ] ) ) ; $ this -> pageOrientation === 'L' ? $ this -> setProperty ( 'pageFormat' , $ this -> pageSize . '-' . $ this -> pageOrientation ) : $ this -> setProperty ( 'pageFormat' , $ this -> pageSize ) ; return $ this ; }
Set the page orientation.

@param string $orientation The page orientation ['Portrait','Landscape']

@return PdfInterface The current instance
Set the page orientation .