THotPDF.SetFormFieldAdditionalAction Method
메서드 요약: THotPDF.SetFormFieldAdditionalAction Method
선언
procedure SetFormFieldAdditionalAction(const FieldName: AnsiString; Trigger: THPDFFormFieldActionTrigger; Action: THPDFActionBuilder);
유닛
HPDFDoc
매개 변수
| 이름 | 목적 |
|---|---|
FieldName | Existing AcroForm field name to find in the generated field list |
Trigger | Field additional-action trigger: KeyStroke, Format, Validate, or Calculate |
Action | Action chain built with THPDFActionBuilder |
사용 참고
- Call this method after creating the target field and before EndDoc
- The method replaces any existing action for the same trigger key and keeps other /AA entries unchanged
- Use ClearFormFieldAdditionalAction to remove one field trigger entry without disturbing other field actions
- Use the named helpers in THotPDFFormFieldActionConvenienceMethods when code should call one method per field or widget trigger
- Builder validation enforces PDF/A and PDF/X restrictions for action types that are not allowed in those conformance families
- Use AttachFieldKeyStrokeAction, AttachFieldFormatAction, AttachFieldValidateAction, or AttachFieldCalculateAction for the JavaScript-only convenience path
Related API
- THPDFActionBuilderClass
- AcroFormSupport
- THotPDFFormFieldActionConvenienceMethods
- THotPDFAttachFieldKeyStrokeActionMethod