public function getPaperSize($paperSize = null)
    {
        $size = $paperSize !== null ? $paperSize : $this->paperSize;
        if (is_array($size)) {
            return $size;
        } else if (isset(Adapter\CPDF::$PAPER_SIZES[mb_strtolower($size)])) {
            return Adapter\CPDF::$PAPER_SIZES[mb_strtolower($size)];
        } else {
            return Adapter\CPDF::$PAPER_SIZES["letter"];
        }
    }
public function getPaperSize($paperSize = null)
    {
        $size = $paperSize !== null ? $paperSize : $this->paperSize;
        if (is_array($size)) {
            return $size;
        } else if (isset(Adapter\CPDF::$PAPER_SIZES[mb_strtolower($size)])) {
            return Adapter\CPDF::$PAPER_SIZES[mb_strtolower($size)];
        } else {
            return Adapter\CPDF::$PAPER_SIZES["letter"];
        }
    }
public function getPaperSize ( $ paperSize = null ) { $ size = $ paperSize !== null ? $ paperSize : $ this -> paperSize ; if ( is_array ( $ size ) ) { return $ size ; } else if ( isset ( Adapter \ CPDF :: $ PAPER_SIZES [ mb_strtolower ( $ size ) ] ) ) { return Adapter \ CPDF :: $ PAPER_SIZES [ mb_strtolower ( $ size ) ] ; } else { return Adapter \ CPDF :: $ PAPER_SIZES [ "letter" ] ; } }
Gets the paper size

@param null|string|array $paperSize
@return int[] A four-element integer array
Gets the paper size