DynaPDF.EditTemplate2
---------------------

Opens a template for editing.

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

MBS( "DynaPDF.EditTemplate2"; PDF; TemplateHandle ) 

**MBS**( **"DynaPDF.EditTemplate2";** /\* Opens a template for editing. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$TemplateHandle**) /\* The template handle number.e.g. $template \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| TemplateHandle | The template handle number. | $template |

### Result

Returns OK or error.

### Description

Opens a template for editing.  
Templates can be edited multiple times in the same way as normal PDF pages. Therefore, the function prepares the template for editing. The current graphics state is saved entirely before the template will be opened and restored when the template will be closed with [DynaPDF.EndTemplate](DynaPDFEndTemplate.md). The current font, line width, fill color and so on are all restored to its values before entering the template.   
The function depends not on an open page.  
See also [EditTemplate2](https://www.monkeybreadsoftware.com/DynaPDF-Manual/EditTemplate2.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.BeginTemplate](DynaPDFBeginTemplate.md)
- [DynaPDF.DeleteTemplate](DynaPDFDeleteTemplate.md)
- [DynaPDF.EditTemplate](DynaPDFEditTemplate.md)
- [DynaPDF.EndTemplate](DynaPDFEndTemplate.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.PlaceTemplate](DynaPDFPlaceTemplate.md)
- [DynaPDF.RotateTemplate](DynaPDFRotateTemplate.md)

### Blog Entries

- [MBS FileMaker Plugin, version 5.1pr9](https://www.mbsplugins.de/archive/2015-05-16/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[DynaPDF.EditTemplate](DynaPDFEditTemplate.md) - [DynaPDF.Ellipse](DynaPDFEllipse.md)

[HTML Version](DynaPDFEditTemplate2.shtml)