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  

DynaPDF.ChangeJavaScriptAction

Replaces the script of a JavaScript action with a new one.

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

Parameters

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.
0
JavaScript The new JavaScript to use.

Result

Returns OK or error.

Description

Replaces the script of a JavaScript action with a new one.
The parameter Index must be a valid handle of a JavaScript action. The parameter NewScript must be a valid JavaScript. The script is not checked by DynaPDF whether it is valid or not. Note that older Acrobat versions do not support all JavaScript functions. Due to several bugs in certain Acrobat versions invalid scripts can cause access violations in Adobe's Acrobat. Test your scripts carefully with all Acrobat versions which must be supported.

See also ChangeJavaScriptAction 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.ChangeJavaScript - DynaPDF.ChangeJavaScriptName

💬 Ask a question or report a problem


Start Chat