public function setPaper($size, $orientation = "portrait")
    {
        $this->paperSize = $size;
        $this->paperOrientation = $orientation;
        return $this;
    }
public function setPaper($size, $orientation = "portrait")
    {
        $this->paperSize = $size;
        $this->paperOrientation = $orientation;
        return $this;
    }
public function setPaper ( $ size , $ orientation = "portrait" ) { $ this -> paperSize = $ size ; $ this -> paperOrientation = $ orientation ; return $ this ; }
Sets the paper size & orientation

@param string|array $size 'letter', 'legal', 'A4', etc. {@link Dompdf\Adapter\CPDF::$PAPER_SIZES}
@param string $orientation 'portrait' or 'landscape'
@return $this
Sets the paper size & orientation