DynaPDF.ResetEncryptionSettings
-------------------------------

Resets the encryption settings which were imported from an external PDF file so that the PDF file in memory can be saved unencrypted.

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

MBS( "DynaPDF.ResetEncryptionSettings"; PDF ) 

**MBS**( **"DynaPDF.ResetEncryptionSettings";** /\* Resets the encryption settings which were imported from an external PDF file so that the PDF file in memory can be saved unencrypted. \*/  
**$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 1, 0 or error.

### Description

Resets the encryption settings which were imported from an external PDF file so that the PDF file in memory can be saved unencrypted.  
If the function succeeds the return value is 1. If the function fails the return value is 0.  
See also [ResetEncryptionSettings](https://www.monkeybreadsoftware.com/DynaPDF-Manual/ResetEncryptionSettings.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.ImportEncryptionSettings](DynaPDFImportEncryptionSettings.md)
- [DynaPDF.New](DynaPDFNew.md)

This function checks for a license.

Created 19th January 2017 , last changed 19th January 2017

  
[DynaPDF.ResetAnnotAP](DynaPDFResetAnnotAP.md) - [DynaPDF.RestoreGraphicState](DynaPDFRestoreGraphicState.md)

[HTML Version](DynaPDFResetEncryptionSettings.shtml)