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

DynaPDF.TestPassword

Test the given password against the owner one.

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

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
PasswordType The password type and flags.
Flag kann be 1 for owner password and 0 for open password.
0
Password The password to decrypt the file. $password

Result

Returns OK or error.

Description

Test the given password against the owner one.
The main purpose of the function is to test the file against the owner password if the encryption settings should be changed by the user. It is not meaningful to call this function for non-encrypted files. To determine whether a PDF file is encrypted call DynaPDF.GetInIsEncrypted.

See also

Release notes

Blog Entries

This function checks for a license.

Created 27th August 2024, last changed 27th August 2024


DynaPDF.TestGlyphs - DynaPDF.TextAnnot