modern-pdf-lib / decodePermissions
Function: decodePermissions()
decodePermissions(
value):PdfPermissionFlags
Defined in: src/crypto/permissions.ts:168
Decode the 32-bit /P integer from a PDF encryption dictionary into human-friendly permission flags.
Parameters
value
number
The /P integer from the encryption dictionary.
Returns
The decoded permission flags.