Handling password-protected PDFs in our JavaScript viewer

Securely lock and unlock PDF documents with a password using robust, industry-standard encryption protocols. Learn how to seamlessly handle password-protected PDFs by exploring our comprehensive guide on opening secured PDF documents in our JavaScript viewer.

Password-protected PDF documents can be opened programmatically by setting the password property in the configuration object passed to PSPDFKit.load().

However, with our JavaScript PDF viewer, no additional configuration is required to handle password-protected PDFs. Simply open the secured PDF, and the viewer will prompt you to enter the password for seamless access.

Password: test

Information

This code sample is an example that illustrates how to use our SDK. Please adapt it to your specific use case.