Unable to check hasEditPassword property using pdfFileInfo class

Hi ,

I am using atatched file to check if it has Open or Edit password or both.

I am using below code to check it , but when control goes to fileinfo.HasEditPassword, it is throwing InvalidPasswordException.

try

{

string filePath = "FileLocation";//some dummy fie location path

PdfFileInfo fileinfo = new PdfFileInfo(filePath);

bool isEncrypted = fileinfo.IsEncrypted;//output True

bool isIOpen = fileinfo.HasOpenPassword;//output True

bool isEdit = fileinfo.HasEditPassword;//throwing InvalidPasswordException

}

catch (Aspose.Pdf.Exceptions.InvalidPasswordException)

{

}

Please assist how can i check for HasEditPassword without providing any passwords.

Thanks:

Anupam

Hi Anupam,


Thanks for your inquiry. After initial investigation, we have logged an investigation ticket PDFNEWNET-37587 in our issue tracking system for further investigation and resolution. We will keep you updated about the issue resolution progress via this forum thread.

We are sorry for the inconvenience caused.

Best Regards,

Team,

Any updates on this?

Hi Anupam,


Thanks for your inquiry. I am afraid your issue is not resolved as we have noticed it recently. It is pending for investigation in the queue with other priority task. As soon as its investigation is completed then we will share our findings or ETA with you.<o:p></o:p>

We are sorry for the inconvenience caused.<o:p></o:p>

Best Regards,

Hi Anupam,


<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>Thanks
for your patience.<o:p></o:p>

We are pleased to share that the issue reported earlier has been resolved and its fix will be included in upcoming release of Aspose.Pdf for .NET 9.8.0. Please be patient and wait for the new release.


PS, the release is planned to publish in few days.