Function: pdf-view-buffer-file-name

pdf-view-buffer-file-name is a natively compiled function defined in pdf-view.el.

Signature

(pdf-view-buffer-file-name)

Documentation

Return the local filename of the PDF in the current buffer.

This may be different from variable buffer-file-name(var)/buffer-file-name(fun) when operating on a local copy of a remote file.

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-buffer-file-name ()
  "Return the local filename of the PDF in the current buffer.

This may be different from variable `buffer-file-name' when
operating on a local copy of a remote file."
  (or pdf-view--buffer-file-name
      (buffer-file-name)
      (buffer-file-name (buffer-base-buffer))))