DynaPDF.GetFieldCount
---------------------

The function returns the number of fields contained in the document.

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

MBS( "DynaPDF.GetFieldCount"; PDF ) 

**MBS**( **"DynaPDF.GetFieldCount";** /\* The function returns the number of fields contained in the 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

The function returns the number of fields contained in the document.  
This is the number of fields in the current document, not the imported one.  
See also [GetFieldCount](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetFieldCount.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetField](DynaPDFGetField.md)
- [DynaPDF.GetFieldAsJSON](DynaPDFGetFieldAsJSON.md)
- [DynaPDF.GetFieldColor](DynaPDFGetFieldColor.md)
- [DynaPDF.GetFieldName](DynaPDFGetFieldName.md)
- [DynaPDF.GetPageCount](DynaPDFGetPageCount.md)
- [DynaPDF.GetTextFieldValue](DynaPDFGetTextFieldValue.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldColor](DynaPDFSetFieldColor.md)
- [DynaPDF.SetFieldFlags](DynaPDFSetFieldFlags.md)
- [DynaPDF.SetFieldFont](DynaPDFSetFieldFont.md)

### Example Databases

- [DynaPDF/Show PDF Fields](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Show%20PDF%20Fields.shtml#2ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.GetFieldColor](DynaPDFGetFieldColor.md) - [DynaPDF.GetFieldExpValCount](DynaPDFGetFieldExpValCount.md)

[HTML Version](DynaPDFGetFieldCount.shtml)