Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


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 license.

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

DynaPDF.ChangeJavaScriptAction - DynaPDF.ChangeLinkAnnot