DynaPDF.GetTemplCount
---------------------

Returns the number of templates used by a page.

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

MBS( "DynaPDF.GetTemplCount"; PDF ) 

**MBS**( **"DynaPDF.GetTemplCount";** /\* Returns the number of templates used by a page. \*/  
**$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 count or error.

### Description

Returns the number of templates used by a page.   
The page must be opened with [DynaPDF.EditPage](DynaPDFEditPage.md) beforehand.   
See also [GetTemplCount](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetTemplCount.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.DeleteTemplateEx](DynaPDFDeleteTemplateEx.md)
- [DynaPDF.EditTemplate](DynaPDFEditTemplate.md)
- [DynaPDF.GetAnnotCount](DynaPDFGetAnnotCount.md)
- [DynaPDF.GetCMapCount](DynaPDFGetCMapCount.md)
- [DynaPDF.GetFontCount](DynaPDFGetFontCount.md)
- [DynaPDF.GetOCGCount](DynaPDFGetOCGCount.md)
- [DynaPDF.GetPageCount](DynaPDFGetPageCount.md)
- [DynaPDF.GetTemplHeight](DynaPDFGetTemplHeight.md)
- [DynaPDF.GetTemplWidth](DynaPDFGetTemplWidth.md)
- [DynaPDF.New](DynaPDFNew.md)

This function checks for a license.

Created 16th May 2015 , last changed 16th May 2015

  
[DynaPDF.GetTabLen](DynaPDFGetTabLen.md) - [DynaPDF.GetTemplHeight](DynaPDFGetTemplHeight.md)

[HTML Version](DynaPDFGetTemplCount.shtml)