emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Survey: Toolbars


From: Tomas Hlavaty
Subject: Re: Emacs Survey: Toolbars
Date: Wed, 23 Dec 2020 16:45:53 +0100

On Wed 23 Dec 2020 at 12:21, Arthur Miller <arthur.miller@live.com> wrote:
> database of papersizes

Emacs already has that.

This is what I use in emacs-pdf:

(defun pdf-page-dimensions ()
  "Return values of page width and height depending on
ps-paper-type and ps-landscape-mode."
  (let ((x (cdr (assq ps-paper-type ps-page-dimensions-database))))
    (if ps-landscape-mode
        (values (cadr x) (car x))
      (values (car x) (cadr x)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]