public function getRotation()
    {
        $rotation = $this->getAttribute('Rotate');
        if (null === $rotation) {
            return 0;
        }

        $rotation = PdfNumeric::ensure(PdfType::resolve($rotation, $this->parser))->value % 360;

        if ($rotation < 0) {
            $rotation += 360;
        }

        return $rotation;
    }
public function getRotation()
    {
        $rotation = $this->getAttribute('Rotate');
        if (null === $rotation) {
            return 0;
        }

        $rotation = PdfNumeric::ensure(PdfType::resolve($rotation, $this->parser))->value % 360;

        if ($rotation < 0) {
            $rotation += 360;
        }

        return $rotation;
    }
public function getRotation ( ) { $ rotation = $ this -> getAttribute ( 'Rotate' ) ; if ( null === $ rotation ) { return 0 ; } $ rotation = PdfNumeric :: ensure ( PdfType :: resolve ( $ rotation , $ this -> parser ) ) -> value % 360 ; if ( $ rotation < 0 ) { $ rotation += 360 ; } return $ rotation ; }
Get the rotation value.

@return int
@throws PdfParserException
@throws PdfTypeException
@throws CrossReferenceException
Get the rotation value .