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

Returns the name of a global JavaScript.

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

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Index The index for the JavaScript to query.
Range from 0 to DynaPDF.GetJavaScriptCount-1.
0

Result

Returns text or error.

Description

Returns the name of a global JavaScript.
The parameter Index must be a valid handle of a global JavaScript.
Use the function DynaPDF.GetJavaScriptCount to determine the number of available scripts. The handles of global JavaScripts are simple array indexes.

See also GetJavaScriptName function in DynaPDF manual.

Examples

Query the name of the thing we added:

Set Variable [ $r ; Value: MBS("DynaPDF.AddJavaScript"; $pdf; "test"; "function test() { return 123; }") ]
Set Variable [ $name ; Value: MBS("DynaPDF.GetJavaScriptName"; $pdf; 0) ]

See also

Release notes

Blog Entries

This function checks for a paid license.

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


DynaPDF.GetJavaScriptCount - DynaPDF.GetLanguage

💬 Ask a question or report a problem


Start Chat