kartik\mpdf\Pdf::parseFormat PHP Method

parseFormat() protected method

Parse the format automatically based on the orientation
protected parseFormat ( )
    protected function parseFormat()
    {
        $tag = '-' . self::ORIENT_LANDSCAPE;
        if ($this->orientation == self::ORIENT_LANDSCAPE && is_string($this->format) && substr($this->format, -2) != $tag) {
            $this->format .= $tag;
        }
    }