DynaPDF.GetInEncryptionInfo
---------------------------

Retrieves encryption settings of the currently active import file.

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

MBS( "DynaPDF.GetInEncryptionInfo"; PDF ) 

**MBS**( **"DynaPDF.GetInEncryptionInfo";** /\* Retrieves encryption settings of the currently active import file. \*/  
**$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 JSON or error.

### Description

Retrieves encryption settings of the currently active import file.  
It is not meaningful to call this function on an unencrypted file. Therefore, call GetInIsEncrypted() beforehand to determine whether the file is encrypted.  
| JSON key | Description |
|---|---|
| Filter | Encryption filter |
| HaveOpenPassword | If true, an open password was set. |
| HaveOwnerPassword | If true, an owner password was set. |
| Restrictions | What must be restricted? This is a bit mask and the very same value that DynaPDF.GetInEncryptionFlags returns. |
| UnsafeOpenPwd | If true, the file can be easily decrypted by DynaPDF if [DynaPDF.SetUseExactPwd](DynaPDFSetUseExactPwd.md) is false. |
| UnsafeOwnerPwd | If true, the file can be easily decrypted by DynaPDF if [DynaPDF.SetUseExactPwd](DynaPDFSetUseExactPwd.md) is false. |

See also [GetInEncryptionInfo](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetInEncryptionInfo.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetUseExactPwd](DynaPDFSetUseExactPwd.md)

### Release notes

- **Version 14.4**
    - Added [DynaPDF.GetInEncryptionInfo](https://www.mbsplugins.eu/DynaPDFGetInEncryptionInfo.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 14.4](https://www.mbsplugins.de/archive/2024-09-24/New_in_MBS_FileMaker_Plugin_14/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.4pr3](https://www.mbsplugins.de/archive/2024-08-21/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 14th August 2024 , last changed 24th September 2024

  
[DynaPDF.GetInDocInfoCount](DynaPDFGetInDocInfoCount.md) - [DynaPDF.GetInFieldCount](DynaPDFGetInFieldCount.md)

[HTML Version](DynaPDFGetInEncryptionInfo.shtml)