PDFium Delphi Component Docs

FormFieldTypeAtPoint metod

Component: TPdf  ·  Unit: PDFium

Syntax

function FormFieldTypeAtPoint(X, Y: Double; out FieldType: TPdfFormFieldType): Boolean;

Description

Koristi nativno PDFium hit-testiranje u page-space koordinatama da identifikuje formularsko polje na X i Y bez alokacije annotation handle-a

Vraća true i popunjava FieldType kada widget postoji, u suprotnom vraća false i postavlja FieldType na fiUnknown

TPdfFormFieldType pokriva fiUnknown, fiPushButton, fiCheckBox, fiRadioButton, fiComboBox, fiListBox, fiTextField i fiSignature, plus XFA-only fiXfa, fiXfaCheckBox, fiXfaComboBox, fiXfaImageField, fiXfaListBox, fiXfaPushButton, fiXfaSignature i fiXfaTextField, koji se javljaju samo kada je učitani PDFium modul izgrađen sa XFA podrškom i dokument ima XFA polja

Potrebna su aktivna strana i inicijalizovano form-fill okruženje

See Also

Callback-ovi domaćina formulara, TPdfView.FormFieldTypeAt