Password Protected pdf using Webviewer Server

WebViewer Version:10.5.1

Do you have an issue with a specific file(s)? Yes
Can you reproduce using one of our samples or online demos? Yes
Are you using the WebViewer server? Yes
Does the issue only happen on certain browsers?No
Is your issue related to a front-end framework?Yes
Is your issue related to annotations?No

Please give a brief summary of your issue:
Viewing Password protected pdf files using webviewer server

Please describe your issue and provide steps to reproduce it:
Am trying to view a pdf file that is password protected, using webviewer server and am getting below error.
Without webviewer server it is working fine.

Please provide a link to a minimal sample where the issue is reproducible:

path: “/WebViewer/lib”,
webviewerServerURL: “somewebviewerserverurl”,
.then(instance => {
instance.UI.loadDocument(fileUrl, {password: ‘test’},

Thank you for posting the incident to our forum. We will provide you with an update as soon as possible.

Hello balaji.gunasekaran,

Can you try using:

instance.Core.documentViewer.loadDocument(url, {password: "password"});

Let me know if this works for you

Best regards,