Namespace: EmbeddedJS

Core.Annotations.Forms. EmbeddedJS

Contains functions for changing the default behavior of embedded PDF JavaScript

Methods


<static> getFinalKeypressValue(globalEvent)

Gets the keypress value of the active field after applying the latest keystroke
Parameters:
Name Type Description
globalEvent Core.Annotations.Forms.PDFJS.Event The global event object in the embedded JS context
Returns:
The current keypress value of the active field
Type
string

<static> update(callback)

Hook into the existing embedded JS functions and update their implementations
Parameters:
Name Type Description
callback Core.Annotations.Forms.EmbeddedJS.UpdateCallback Function that is called with the embedded global object

Type Definitions


UpdateCallback(globals)

Callback function for updating embedded JavaScript global object
Parameters:
Name Type Description
globals Object The embedded global object containing PDF JavaScript APIs