THPDFNamesFacade.AddJavaScriptFunction Method
Adds a named JavaScript function wrapper to the document name tree
Declaration
procedure AddJavaScriptFunction(const Name, Params, Body: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Name | Function name, also used as the name tree key |
Params | Comma-separated parameter list for the generated function |
Body | Function body text wrapped inside the generated function Name(Params){...} |
Usage notes
- Formats the entry as
function Name(Params){Body}and registers it via AddJavaScript