Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.GetInEncryptionInfo

Retrieves encryption settings of the currently active import file.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 14.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetInEncryptionInfo"; PDF )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $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 keyDescription
FilterEncryption filter
HaveOpenPasswordIf true, an open password was set.
HaveOwnerPasswordIf true, an owner password was set.
RestrictionsWhat must be restricted? This is a bit mask and the very same value that DynaPDF.GetInEncryptionFlags returns.
UnsafeOpenPwdIf true, the file can be easily decrypted by DynaPDF if DynaPDF.SetUseExactPwd is false.
UnsafeOwnerPwdIf true, the file can be easily decrypted by DynaPDF if DynaPDF.SetUseExactPwd is false.

See also

Release notes

Blog Entries

This function checks for a license.

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


DynaPDF.GetInDocInfoCount - DynaPDF.GetInFieldCount