Table 217 – Additional entries specific to a JavaScript action

Key

Type

Value

S

name

(Required) The type of action that this dictionary describes; shall be JavaScript for a JavaScript action.

JS

text string or text stream

(Required) A text string or text stream containing the JavaScript script to be executed.

PDFDocEncoding or Unicode encoding (the latter identified by the Unicode prefix U+ FEFF) shall be used to encode the contents of the string or stream.