Function: pdf-util-edges-p
pdf-util-edges-p is a natively compiled function defined in
pdf-util.el.
Signature
(pdf-util-edges-p OBJ &optional RELATIVE-P)
Documentation
Return non-nil, if OBJ look like edges.
If RELATIVE-P is non-nil, also check that all values <= 1.
Source Code
;; Defined in /nix/store/63h5z2vmzn0mfavcxi2idi23g5xcgkbl-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20260102.1101/pdf-util.el
;; FIXME: Check code below and document.
(defun pdf-util-edges-p (obj &optional relative-p)
"Return non-nil, if OBJ look like edges.
If RELATIVE-P is non-nil, also check that all values <= 1."
(and (consp obj)
(ignore-errors (= 4 (length obj)))
(cl-every (lambda (x)
(and (numberp x)
(>= x 0)
(or (null relative-p)
(<= x 1))))
obj)))