Web SDKv1.0.0

PDFDocument.security

Encryption and permissions. protect() and removeProtection() need the export feature. See SecurityApi.
getterNamespacessince 1.0.0

Signature

get security(): SecurityApi

Returns

SecurityApi

Example

TypeScript
if (doc.security.isEncrypted) console.log(doc.security.permissions);

More in PDFDocument