Companion to pdf_link_at_point(): returns the form-field type
under (x, y) on page, plus its z-order. Useful for "what
would clicking here interact with?" workflows. Wraps
FPDFPage_HasFormFieldAtPoint and
FPDFPage_FormFieldZOrderAtPoint.
Arguments
- page
A
pdfium_pagefrompdf_page_load(), or apdfium_doc.- x, y
Point coordinates in PDF user-space points.
- page_num
One-based page index. Only used when
pageis apdfium_doc. Ignored otherwise.
Value
A list with two scalars:
field_typecharacter —"textfield","checkbox","radiobutton","combobox","listbox","pushbutton","signature", one of the XFA variants,"unknown", orNAwhen no form field is under the point.z_orderinteger — the form widget's z-order on the page (higher = on top);NAwhen no field is under the point.