DynaPDF.DeleteXFAForm
---------------------

Deletes a maybe existing XFA form (XML based form) if any.

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

MBS( "DynaPDF.DeleteXFAForm"; PDF ) 

**MBS**( **"DynaPDF.DeleteXFAForm";** /\* Deletes a maybe existing XFA form (XML based form) if any. \*/  
**$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

Deletes a maybe existing XFA form (XML based form) if any.   
This can be useful if the PDF file contains a hybrid form because DynaPDF does not allow editing form fields as long as an XFA form is present.   
See also [DeleteXFAForm](https://www.monkeybreadsoftware.com/DynaPDF-Manual/DeleteXFAForm.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.DeleteAcroForm](DynaPDFDeleteAcroForm.md)
- [DynaPDF.GetInIsXFAForm](DynaPDFGetInIsXFAForm.md)
- [DynaPDF.New](DynaPDFNew.md)

This function checks for a license.

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

  
[DynaPDF.DeleteWatermark](DynaPDFDeleteWatermark.md) - [DynaPDF.DrawArc](DynaPDFDrawArc.md)

[HTML Version](DynaPDFDeleteXFAForm.shtml)