public function getWidthAndHeight($box = PageBoundaries::CROP_BOX, $fallback = true)
    {
        $boundary = $this->getBoundary($box, $fallback);
        if ($boundary === false) {
            return false;
        }

        $rotation = $this->getRotation();
        $interchange = ($rotation / 90) % 2;

        return [
            $interchange ? $boundary->getHeight() : $boundary->getWidth(),
            $interchange ? $boundary->getWidth() : $boundary->getHeight()
        ];
    }
public function getWidthAndHeight($box = PageBoundaries::CROP_BOX, $fallback = true)
    {
        $boundary = $this->getBoundary($box, $fallback);
        if ($boundary === false) {
            return false;
        }

        $rotation = $this->getRotation();
        $interchange = ($rotation / 90) % 2;

        return [
            $interchange ? $boundary->getHeight() : $boundary->getWidth(),
            $interchange ? $boundary->getWidth() : $boundary->getHeight()
        ];
    }
public function getWidthAndHeight ( $ box = PageBoundaries :: CROP_BOX , $ fallback = true ) { $ boundary = $ this -> getBoundary ( $ box , $ fallback ) ; if ( $ boundary === false ) { return false ; } $ rotation = $ this -> getRotation ( ) ; $ interchange = ( $ rotation / 90 ) % 2 ; return [ $ interchange ? $ boundary -> getHeight ( ) : $ boundary -> getWidth ( ) , $ interchange ? $ boundary -> getWidth ( ) : $ boundary -> getHeight ( ) ] ; }
Get the width and height of this page.

@param string $box
@param bool $fallback
@return array|bool
@throws PdfParserException
@throws PdfTypeException
@throws CrossReferenceException
Get the width and height of this page .