Skip to content

modern-pdf-lib


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

PdfPermissionFlags

The decoded permission flags.

Released under the MIT License.