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

NamePurpose
NameFunction name, also used as the name tree key
ParamsComma-separated parameter list for the generated function
BodyFunction body text wrapped inside the generated function Name(Params){...}

Usage notes

Related APIs