Function: pdf-info-pagesize

pdf-info-pagesize is a natively compiled function defined in pdf-info.el.

Signature

(pdf-info-pagesize PAGE &optional FILE-OR-BUFFER)

Documentation

Return the size of PAGE as a cons (WIDTH . HEIGHT)

The size is in PDF points.

Source Code

;; Defined in /nix/store/63h5z2vmzn0mfavcxi2idi23g5xcgkbl-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20260102.1101/pdf-info.el
(defun pdf-info-pagesize (page &optional file-or-buffer)
  "Return the size of PAGE as a cons \(WIDTH . HEIGHT\)

The size is in PDF points."
  (pdf-info-query
   'pagesize
   (pdf-info--normalize-file-or-buffer file-or-buffer)
   page))