DynaPDF.GetTemplWidth
---------------------

Returns the width of a template.

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

MBS( "DynaPDF.GetTemplWidth"; PDF; Handle ) 

**MBS**( **"DynaPDF.GetTemplWidth";** /\* Returns the width of a template. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Handle**) /\* Template handle.e.g. $template \*/ 

### Parameters

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

### Result

Returns number or error.

### Description

Returns the width of a template.   
The parameter Handle must be a valid template handle.   
See also [GetTemplWidth](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetTemplWidth.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetLineWidth](DynaPDFGetLineWidth.md)
- [DynaPDF.GetPageWidth](DynaPDFGetPageWidth.md)
- [DynaPDF.GetTemplCount](DynaPDFGetTemplCount.md)
- [DynaPDF.GetTemplHeight](DynaPDFGetTemplHeight.md)
- [DynaPDF.GetTextWidth](DynaPDFGetTextWidth.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.PlaceTemplate](DynaPDFPlaceTemplate.md)

### Example Databases

- [DynaPDF/Generate Previews](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Generate%20Previews.shtml#3ScriptAnchor_)
- [DynaPDF/Shrink PDF pages](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Shrink%20PDF%20pages.shtml#2ScriptAnchor_)

### Blog Entries

- [Normalize PDF orientation with MBS Plugins and DynaPDF](https://www.mbsplugins.de/archive/2018-03-09/Normalize_PDF_orientation_with/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 6th February 2015 , last changed 6th February 2015

  
[DynaPDF.GetTemplHeight](DynaPDFGetTemplHeight.md) - [DynaPDF.GetTextBBox](DynaPDFGetTextBBox.md)

[HTML Version](DynaPDFGetTemplWidth.shtml)