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

DynaPDF.GetUserRights

Queries user rights.

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

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf

Result

Returns number or error.

Description

Queries user rights.
Returns the encryption flags of the last imported PDF file or -1 if the file was not encrypted. These flags must be considered when opening an encrypted PDF with user privileges, that is, when the open password was used to decrypt the file. The print flags rsPrint and rsPrintHighRes can be ignored for editing, but the file must be encrypted again with the same encryption flags.
The encryption flags are described in detail at DynaPDF.EnableEncryption. If no file was imported beforehand the return value is zero. Use DynaPDF.GetInIsEncrypted to determine whether the file was encrypted.

See also GetUserRights function in DynaPDF manual.

See also

Release notes

Blog Entries

This function checks for a license.

Created 17th October 2019, last changed 9th November 2021


DynaPDF.GetUseVisibleCoords - DynaPDF.GetUserUnit