Hit-test for a link annotation, returning the annotation handle
Source:R/annot_probes.R
pdf_link_annot_at_point.RdCompanion to pdf_link_at_point() (which surfaces the link's
action / destination / URI) — this one returns the underlying
link pdfium_annot handle (or NULL when nothing's there) so
the caller can hand it to per-annotation getters
(pdf_annot_subtype(), pdf_annot_dict_value(),
pdf_annot_appearance(), ...) or splice it back into
as_pdfium_annot_list(). Wraps FPDFLink_GetLinkAtPoint +
FPDFLink_GetAnnot, then re-loads the annotation through
pdf_annotations()'s shared shim so the handle owns its own
lifetime.
Arguments
- page
A
pdfium_pagefrompdf_page_load(), or apdfium_doc(the page given bypage_numwill be loaded and closed internally).- x, y
Point coordinates in PDF user-space points.
- page_num
One-based page index. Only used when
pageis apdfium_doc. Ignored otherwise.