Function: pdf-util-scale-to
pdf-util-scale-to is a natively compiled function defined in
pdf-util.el.
Signature
(pdf-util-scale-to LIST-OF-EDGES FROM TO &optional ROUNDING-FN)
Documentation
Scale LIST-OF-EDGES in FROM basis to TO.
FROM and TO should both be a cons (WIDTH . HEIGHT). See also
pdf-util-scale.
Source Code
;; Defined in /nix/store/63h5z2vmzn0mfavcxi2idi23g5xcgkbl-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20260102.1101/pdf-util.el
(defun pdf-util-scale-to (list-of-edges from to &optional rounding-fn)
"Scale LIST-OF-EDGES in FROM basis to TO.
FROM and TO should both be a cons \(WIDTH . HEIGHT\). See also
`pdf-util-scale'."
(pdf-util-scale list-of-edges
(cons (/ (float (car to))
(float (car from)))
(/ (float (cdr to))
(float (cdr from))))
rounding-fn))