public function setPageSize(string $pageSize): PdfInterface
    {
        $this->setProperty('pageSize', $pageSize);
        $this->registerPageFormat();

        return $this;
    }
public function setPageSize(string $pageSize): PdfInterface
    {
        $this->setProperty('pageSize', $pageSize);
        $this->registerPageFormat();

        return $this;
    }
public function setPageSize ( string $ pageSize ) : PdfInterface { $ this -> setProperty ( 'pageSize' , $ pageSize ) ; $ this -> registerPageFormat ( ) ; return $ this ; }
Set the page size.

@param string $pageSize The page format/size type ['Letter','Legal', etc.]

@return PdfInterface The current instance

@api
Set the page size .