PDFium Delphi Component Docs

FormFieldTabOrderForPage function

Unit: PDFium

Returns zero-based widget-field ordinals in page tab order, excluding unrelated annotations

Syntax

function FormFieldTabOrderForPage(FormHandle: FPDF_FORMHANDLE;
  Page: FPDF_PAGE): TPdfIntegerArray; overload;
function FormFieldTabOrderForPage(FormHandle: FPDF_FORMHANDLE;
  Page: FPDF_PAGE; out Status: TPdfFormTabOrderStatus): TPdfIntegerArray; overload;

Ownership and policy

Pass the active TPdf form handle and a page registered as its current page, a bound viewer page or a cached form page; the owner supplies the current-document Tabs policy

Arbitrary independently loaded native pages or external form handles cannot establish snapshot ownership and return annotation-array order with a diagnostic; pass only handles from the same document

The return values are widget ordinals accepted by FocusFormFieldForPage, not raw annotation-array indexes; nil handles or pages without widgets return an empty array

R/C/S/A/W policy, finite budgets and fallback rules are shared with TPdf.FormFieldTabOrder; the no-status overload discards diagnostics

Example

Order := FormFieldTabOrderForPage(Pdf1.FormHandle, Pdf1.Page, Status);

See Also

TPdfFormTabOrderStatus, NextFormFieldIndexForPage, TPdfView.FormFieldTabOrder