Function: pdf-view-goto-label

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

Signature

(pdf-view-goto-label LABEL)

Documentation

Go to the page corresponding to LABEL.

Usually, the label of a document's page is the same as its displayed page number.

Key Bindings

pdf-view-mode-map M-g l

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-goto-label (label)
  "Go to the page corresponding to LABEL.

Usually, the label of a document's page is the same as its
displayed page number."
  (interactive
   (list (let ((labels (pdf-info-pagelabels)))
           (completing-read "Goto label: " labels nil t))))
  (let ((index (cl-position label (pdf-info-pagelabels) :test 'equal)))
    (unless index
      (error "No such label: %s" label))
    (pdf-view-goto-page (1+ index))))