We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error in Encrypted file - "Wrong Conversion- please check your PDF"

I have 1 pdf file which has already user password,

I have tried to open that file and get this error.

Code:-

PdfViewer viewer = new PdfViewer();

viewer.OpenPdfFile(@"D:\test.pdf");

string pw = viewer.Password;

When file is not encrypted it opens the file but for encrypted file

Thanks,

Hi,

Since the file is already encrypted you have to set the correct password before you call OpenPdfFile.

Thanks.