# JavaScript Module

(HOOPS Publish Advanced)Functions for setting JavaScript code on PDF entities.

This module describes the functions and structures that allow you to define JavaScript code on PDF entities, such as Document, Page, 3D annot, or Fields.

Parameters

> pDoc: The Document object to work with.

> pcScriptName: The name of the script. It is not used by Acrobat but needs to be unique.

> pcJavascriptString: The string which contains the JavaScript.

Returns

> A3D_SUCCESS in case of success or an error code

Enumerations

- `A3DPDFEEventActionType`

Functions

- `A3DPDFDocumentAddJavascriptFromString()`
- `A3DPDFPageFieldSetActionJavascriptFromString()`
- `A3DPDFPageFieldSetActionJavascript()`
- `A3DPDFDocumentSetActionJavascript()`
- `A3DPDFPageSetActionJavascript()`
- `A3DPDF3DAnnotSetActionJavascript()`

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...