Function: pdf-view-rotate

pdf-view-rotate is an interactive and natively compiled function defined in pdf-view.el.

Signature

(pdf-view-rotate ANGLE)

Documentation

Rotate the current page by ANGLE degrees clockwise.

When called interactively, angle defaults to 90. Moreover, if called interactively with a prefix argument, then rotate anti-clockwise.

Key Bindings

pdf-view-mode-map R

Source Code

;; Defined in /nix/store/63h5z2vmzn0mfavcxi2idi23g5xcgkbl-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20260102.1101/pdf-view.el
;; * ================================================================== *
;; * Rotation
;; * ================================================================== *
(defun pdf-view-rotate (angle)
  "Rotate the current page by ANGLE degrees clockwise.
When called interactively, angle defaults to 90.  Moreover, if
called interactively with a prefix argument, then rotate
anti-clockwise."
  (interactive (list (if current-prefix-arg -90 90)))
  (setq-local pdf-view--current-rotation
              (mod (+ (or pdf-view--current-rotation 0)
                      angle)
                   360))
  (pdf-view-redisplay t))