Returns one tibble row per link annotation on the page, with
the link's bounding rectangle and the action it carries
(target page for internal links, URL for external links).
Wraps FPDFLink_Enumerate plus the per-link
FPDFLink_GetAnnotRect, FPDFLink_GetAction / _GetDest,
FPDFAction_GetType, FPDFAction_GetURIPath,
FPDFAction_GetFilePath, and FPDFDest_GetDestPageIndex.
Arguments
- page
A
pdfium_pagefrompdf_page_load(), or apdfium_doc.- page_num
One-based page index. Only used when
pageis apdfium_doc. Ignored otherwise.
Value
A tibble with columns:
link_indexinteger - 1-based position in the page's link table.bounds_left,bounds_bottom,bounds_right,bounds_top- link hit-test rectangle in PDF user space.action_typecharacter - one of"goto"(jump within the document),"remote_goto"(jump to a remote PDF),"uri"(open a URL),"launch"(launch an external file or application),"embedded_goto"(jump into an embedded file), or"unsupported".uricharacter - the target URL whenaction_type == "uri";NAotherwise.filepathcharacter - the external file path whenaction_typeis"remote_goto"/"launch"/"embedded_goto";NAotherwise.dest_page_numinteger - 1-based destination page within the current (or remote) document;NAwhen not resolvable.dest_viewcharacter - destination view mode ("xyz","fit","fith","fitv","fitr","fitb","fitbh","fitbv","unknown").dest_x,dest_y,dest_zoomnumeric - explicit point and zoom for XYZ destinations / scroll offsets for the Fit* variants;NAfor components the destination doesn't set.quad_pointslist-column - per-line quad sets for multi-line links. An N-by-8 numeric matrix with columnsx1, y1, x2, y2, x3, y3, x4, y4in PDF user space (one row per line), orNULLfor links that carry no/QuadPoints(single-rect links). Same shape aspdf_annotations()$quad_points.
Returns a 0-row tibble of the same schema when the page has no link annotations.