Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3    Statistic    FMM    Blog  


Changes the name of a global JavaScript.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.ChangeJavaScriptName"; PDF; Index; New Name )   More


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Index The index for the JavaScript to change.
Range from 0 to DynaPDF.GetJavaScriptCount-1.
New Name The new name of the JavaScript. "test"


Returns OK or error.


Changes the name of a global JavaScript.
The parameter Name defines the name of this script. This name is NOT used to identify a function inside the JavaScript; it is only used in Adobe's Acrobat to select a specific script. The script name must be unique. Different scripts cannot not use the same name.

See also ChangeJavaScriptName function in DynaPDF manual.

See also

Release notes

Blog Entries

This function checks for a paid license.

Created 15th April 2023, last changed 15th April 2023

DynaPDF.ChangeJavaScriptAction - DynaPDF.ChangeLinkAnnot

💬 Ask a question or report a problem

Start Chat