PDF Permissions
A PDF file can have two different passwords sets, a permissions or owner password and an open or user password.
A PDF user password is used to secure access to PDF documents and requires the correct password to view the content. It is commonly used to protect confidential reports and financial documents. The PDF reader also displays document rights such as copying and printing permissions when a user password is set.
A PDF permission password, also called an owner or master password, protects the permissions of a PDF document. It restricts actions such as making changes or comments and allows control over copying, printing, and modification. Permission passwords ensure integrity and allow management of advanced editing and security settings. They protect the user's copyright and differ from user passwords.
PDF files' password can be set/removed to encrypt/decrypt the PDF document. Encrypt and decrypt the password through the following function.
// Encrypt PDF Files.
docViewer.setPassword('test');
// Decrypt PDF Files.
docViewer.removePassword();
2
3
4
5