DynaPDF.GetFontCount
--------------------

Returns the number of fonts which are used in the document.

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

MBS( "DynaPDF.GetFontCount"; PDF ) 

**MBS**( **"DynaPDF.GetFontCount";** /\* Returns the number of fonts which are used 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 fonts which are used in the document.  
See also [GetFontCount](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetFontCount.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetAnnotCount](DynaPDFGetAnnotCount.md)
- [DynaPDF.GetFieldCount](DynaPDFGetFieldCount.md)
- [DynaPDF.GetFontAsJSON](DynaPDFGetFontAsJSON.md)
- [DynaPDF.GetFontSize](DynaPDFGetFontSize.md)
- [DynaPDF.GetFontWeight](DynaPDFGetFontWeight.md)
- [DynaPDF.GetImageCount](DynaPDFGetImageCount.md)
- [DynaPDF.GetOCGCount](DynaPDFGetOCGCount.md)
- [DynaPDF.GetTemplCount](DynaPDFGetTemplCount.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetContent](DynaPDFSetContent.md)

### Example Databases

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

This function checks for a license.

Created 21st October 2014 , last changed 9th November 2021

  
[DynaPDF.GetFontAsJSON](DynaPDFGetFontAsJSON.md) - [DynaPDF.GetFontOrigin](DynaPDFGetFontOrigin.md)

[HTML Version](DynaPDFGetFontCount.shtml)