DynaPDF.GetTrapped
------------------

Returns the trapped key of the document.

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

MBS( "DynaPDF.GetTrapped"; PDF ) 

**MBS**( **"DynaPDF.GetTrapped";** /\* Returns the trapped key of the document. \*/  
**$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 value or error.

### Description

Returns the trapped key of the document.   
The default value is false. However, the real default value is unknown that means the key is not written to the file. The trapped key must be set with SetTrapped if it should written to the file.   
  
See also [GetTrapped](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetTrapped.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetInIsTrapped](DynaPDFGetInIsTrapped.md)
- [DynaPDF.GetTabLen](DynaPDFGetTabLen.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetTabLen](DynaPDFSetTabLen.md)
- [DynaPDF.SetTrapped](DynaPDFSetTrapped.md)

This function checks for a license.

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

  
[DynaPDF.GetTransparentColor](DynaPDFGetTransparentColor.md) - [DynaPDF.GetUseExactPwd](DynaPDFGetUseExactPwd.md)

[HTML Version](DynaPDFGetTrapped.shtml)