DynaPDF.CreateSigFieldAP
------------------------

Creates a signature appearance template in the exact size of the base signature field.

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

MBS( "DynaPDF.CreateSigFieldAP"; PDF; SigField ) 

**MBS**( **"DynaPDF.CreateSigFieldAP";** /\* Creates a signature appearance template in the exact size of the base signature field. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$SigField**) /\* Handle of a signature field. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| SigField | Handle of a signature field. | $SigField |

### Result

Returns action handle or error.

### Description

Creates a signature appearance template in the exact size of the base signature field.   
The created template is already opened if the function succeeds and you can draw arbitrary contents into it. After the appearance has been defined the template must be closed with EndTemplate.  
Note that the template is reserved for the signature field. It must not be placed on pages or other templates.  
When creating a user defined appearance for a signature field you should also place the validation icon properly so that it does not overprint the entire contents. See also [DynaPDF.PlaceSigFieldValidateIcon](DynaPDFPlaceSigFieldValidateIcon.md).  
  
If the function succeeds the return value is the action handle, a value greater or equal zero. If the function fails the return value is the error message.  
See also [CreateSigFieldAP](https://www.monkeybreadsoftware.com/DynaPDF-Manual/CreateSigFieldAP.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.CreateGroupField](DynaPDFCreateGroupField.md)
- [DynaPDF.CreateSigField](DynaPDFCreateSigField.md)
- [DynaPDF.CreateTextField](DynaPDFCreateTextField.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.PlaceSigFieldValidateIcon](DynaPDFPlaceSigFieldValidateIcon.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)
- [MBS Filemaker Plugin, version 4.2pr5](https://www.mbsplugins.de/archive/2014-05-10/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.CreateSigField](DynaPDFCreateSigField.md) - [DynaPDF.CreateStructureTree](DynaPDFCreateStructureTree.md)

[HTML Version](DynaPDFCreateSigFieldAP.shtml)