Function: pdf-view-text-regions-hotspots-function
pdf-view-text-regions-hotspots-function is a natively compiled
function defined in pdf-view.el.
Signature
(pdf-view-text-regions-hotspots-function PAGE SIZE)
Documentation
Return a list of hotspots for text regions on PAGE using SIZE.
This will display a text cursor, when hovering over them.
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-text-regions-hotspots-function (page size)
"Return a list of hotspots for text regions on PAGE using SIZE.
This will display a text cursor, when hovering over them."
(local-set-key [pdf-view-text-region t]
'pdf-util-image-map-mouse-event-proxy)
(mapcar (lambda (region)
(let ((e (pdf-util-scale region size 'round)))
`((rect . ((,(nth 0 e) . ,(nth 1 e))
. (,(nth 2 e) . ,(nth 3 e))))
pdf-view-text-region
(pointer text))))
(pdf-cache-textregions page)))