DynaPDF.GetJavaScriptCount
--------------------------

Returns the number of global JavaScripts contained in a document.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetJavaScriptCount"; PDF ) 

**MBS**( **"DynaPDF.GetJavaScriptCount";** /\* Returns the number of global JavaScripts contained in a document. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns number or error.

### Description

Returns the number of global JavaScripts contained in a document.   
See also [GetJavaScriptCount](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetJavaScriptCount.shtml) function in DynaPDF manual.

### Examples

 Set Variable \[ $count ; Value: MBS ( "DynaPDF.GetJavaScriptCount"; $PDF ) \]  
### See also

- [DynaPDF.ChangeJavaScript](DynaPDFChangeJavaScript.md)
- [DynaPDF.ChangeJavaScriptAction](DynaPDFChangeJavaScriptAction.md)
- [DynaPDF.ChangeJavaScriptName](DynaPDFChangeJavaScriptName.md)
- [DynaPDF.GetJavaScript](DynaPDFGetJavaScript.md)
- [DynaPDF.GetJavaScriptAction](DynaPDFGetJavaScriptAction.md)
- [DynaPDF.GetJavaScriptName](DynaPDFGetJavaScriptName.md)
- [DynaPDF.New](DynaPDFNew.md)

### Blog Entries

- [Electronic invoices in FileMaker](https://www.mbsplugins.de/archive/2025-03-06/Electronic_invoices_in_FileMak/monkeybreadsoftware_blog_filemaker)
- [Elektronische Rechnungen in FileMaker](https://www.mbsplugins.de/archive/2025-03-04/Elektronische_Rechnungen_in_Fi/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 6th February 2015 , last changed 1st July 2021

  
[DynaPDF.GetJavaScriptAction](DynaPDFGetJavaScriptAction.md) - [DynaPDF.GetJavaScriptName](DynaPDFGetJavaScriptName.md)

[HTML Version](DynaPDFGetJavaScriptCount.shtml)