Checking if document is password protected


#1

Hi,

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.

Steven


#2

@StevenRobertsDev,

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.