0
How to know if the document is in protected mode programatically
New Here
,
/t5/acrobat-sdk-discussions/how-to-know-if-the-document-is-in-protected-mode-programatically/td-p/8874299
Mar 21, 2017
Mar 21, 2017
Copy link to clipboard
Copied
I'm using C++ for building our Adobe Plugins. I want to disable one of the toolbar buttons when the document is opened in protected mode and until we click on "Enable All Features".

We are using this call AVToolButtonSetComputeEnabledProc(cabinetButton, ASCallbackCreateProto(AVComputeEnabledProc, &CabinetEnabled), NULL); to enable/disable the button.
I'm checking for Active Doc in the call back CabinetEnabled using AVAppGetActiveDoc()
AVAppGetActiveDoc() is returning null when the pdf is opened in protected mode until we enable all features where as its not null when opened in Adobe DC.
Is there a way that we can figure out if the document is in protected mode. ?
Thanks in advance.
TOPICS
Acrobat SDK and JavaScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Have something to add?
Join the conversation