Hi,
I’m using the PDFNet C++ SDK to write a Windows application and would be grateful for an answer to the following question.
If a user opens an encrypted PDF document and this is loaded into PDF::PDFDoc then:
PDFDoc::IsEncrypted() returns true and the user is prompted to enter a password.
When the user enters a correct password PDFDoc::InitStdSecurityHandler() returns true.
At this point I want the application to determine whether the user entered a Master password or a User password, however I can see no means of distinguishing between the case of a user entering a User password for a document protected with a User password only and the case of a user entering a Master password for a document protected with both a Master password and a User password.
How can I programatically distinguish between these two cases?
Many thanks for your help.
Terry.