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

Free Support Forum - aspose.com

Checking if document is password protected


I have a onenote document that is password protected. I want to know if its possible to detect this before I try and open it? some sort of “doc.isPasswordProtected()” type thing.

I am trying to open a large document and it has hung. I can see it fails with smaller documents that are password protected and I get an exception.



There is no such property at the moment that can tell if the document is password protected or not, since it may require to load the whole document. Please share your sample large document that hangs with the API. We’ll analyze it for possible cause of hanging the API.