sempdf
sempdf v1.9.1Interfaces

Interface: FieldActions

sempdf v1.9.1


sempdf / FieldActions

Defined in: src/types.ts:3143

JavaScript actions attached to a form field.

Key mapping (ISO 32000-2 Table 217):

  • keystroke → /K (Keystroke action)
  • format → /F (Format action)
  • validate → /V (Validate action)
  • calculate → /C (Calculate action)

Each string is raw PDF JavaScript source code. The library emits each non-null action as a PDF stream object referenced from the /AA dictionary on the field annotation.

Properties

PropertyTypeDescriptionDefined in
calculate?stringCalculate JS → /C in the /AA dict.src/types.ts:3151
format?stringFormat JS → /F in the /AA dict.src/types.ts:3147
keystroke?stringKeystroke JS → /K in the /AA dict.src/types.ts:3145
validate?stringValidate JS → /V in the /AA dict.src/types.ts:3149

On this page