Function: pdf-view--next-line-or-next-page

pdf-view--next-line-or-next-page is an interactive and natively compiled function defined in pdf-view.el.

Signature

(pdf-view--next-line-or-next-page &optional ARG)

Documentation

Scroll upward by ARG lines if possible, else go to the next page.

When pdf-view-continuous is non-nil, scrolling a line upward at the bottom edge of the page moves to the next page.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/63h5z2vmzn0mfavcxi2idi23g5xcgkbl-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20260102.1101/pdf-view.el
(defun pdf-view--next-line-or-next-page (&optional arg)
  "Scroll upward by ARG lines if possible, else go to the next page.

When `pdf-view-continuous' is non-nil, scrolling a line upward
at the bottom edge of the page moves to the next page."
  (interactive "p")
  (if pdf-view-continuous
      (let ((hscroll (window-hscroll))
            (cur-page (pdf-view-current-page)))
        (when (= (window-vscroll nil pdf-view-have-image-mode-pixel-vscroll)
                 (image-next-line arg))
          (ignore-errors (pdf-view-next-page))
          (when (/= cur-page (pdf-view-current-page))
            (image-bob)
            (image-bol 1))
          (image-set-window-hscroll hscroll)))
    (image-next-line arg)))