DynaPDF.EndTemplate
-------------------

This function closes an open template.

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

MBS( "DynaPDF.EndTemplate"; PDF ) 

**MBS**( **"DynaPDF.EndTemplate";** /\* This function closes an open template. \*/  
**$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 OK or error.

### Description

This function closes an open template.  
You can open one with [DynaPDF.BeginTemplate](DynaPDFBeginTemplate.md), [DynaPDF.EditTemplate](DynaPDFEditTemplate.md) or [DynaPDF.EditTemplate2](DynaPDFEditTemplate2.md).   
See also [EndTemplate](https://www.monkeybreadsoftware.com/DynaPDF-Manual/EndTemplate.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.BeginTemplate](DynaPDFBeginTemplate.md)
- [DynaPDF.CreateAnnotAP](DynaPDFCreateAnnotAP.md)
- [DynaPDF.EditTemplate](DynaPDFEditTemplate.md)
- [DynaPDF.EditTemplate2](DynaPDFEditTemplate2.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.PlaceTemplate](DynaPDFPlaceTemplate.md)
- [DynaPDF.WatermarkAnnot](DynaPDFWatermarkAnnot.md)

### Example Databases

- [DynaPDF/Signature Appearance](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Signature%20Appearance.shtml#1ScriptAnchor_)

### Blog Entries

- [Digitally signing PDF with DynaPDF and custom signature appearance](https://www.mbsplugins.de/archive/2020-04-22/Digitally_signing_PDF_with_Dyn/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 7th January 2017 , last changed 17th July 2022

  
[DynaPDF.EndPattern](DynaPDFEndPattern.md) - [DynaPDF.ExchangeBookmarks](DynaPDFExchangeBookmarks.md)

[HTML Version](DynaPDFEndTemplate.shtml)