DynaPDF.GetDocInfoCount
-----------------------

Returns the number of document info entries defined in the document.

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

MBS( "DynaPDF.GetDocInfoCount"; PDF ) 

**MBS**( **"DynaPDF.GetDocInfoCount";** /\* Returns the number of document info entries defined 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

Returns the number of document info entries defined in the document.   
This function can be used in combination with GetDocInfoEx() to enumerate the document info entries of the PDF file.  
See also [GetDocInfoCount](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetDocInfoCount.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetActionCount](DynaPDFGetActionCount.md)
- [DynaPDF.GetAnnotCount](DynaPDFGetAnnotCount.md)
- [DynaPDF.GetDocInfo](DynaPDFGetDocInfo.md)
- [DynaPDF.GetDocInfoAsJSON](DynaPDFGetDocInfoAsJSON.md)
- [DynaPDF.GetFontCount](DynaPDFGetFontCount.md)
- [DynaPDF.GetInDocInfoCount](DynaPDFGetInDocInfoCount.md)
- [DynaPDF.New](DynaPDFNew.md)

This function checks for a license.

Created 6th February 2015 , last changed 9th November 2021

  
[DynaPDF.GetDocInfoAsJSON](DynaPDFGetDocInfoAsJSON.md) - [DynaPDF.GetDocUsesTransparency](DynaPDFGetDocUsesTransparency.md)

[HTML Version](DynaPDFGetDocInfoCount.shtml)