Completed
Last Updated: 18 May 2021 08:20 by ADMIN
Ben
Created on: 28 Apr 2021 06:44
Category: PdfViewer
Type: Bug Report
0
PdfViewer: Password protected documents cannot be opened

PdfViewer: Password protected documents cannot be opened 

Workaround:

PdfFormatProvider provider = new PdfFormatProvider();
PdfImportSettings settings = this.radPdfViewer1.PdfViewerElement.ImportSettings;
settings.UserPasswordNeeded += (s, a) =>
{
    a.Password = "1234";
};

provider.ImportSettings = settings;

this.radPdfViewer1.LoadDocument(@"..\..\password.pdf");

1 comment
ADMIN
Dimitar
Posted on: 18 May 2021 08:20

Hello,

Use the suggested API for opening the PDF document.

Regards,
Dimitar
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.