I am trying to restrict the permissions on a document during opening of the document without making any modifications on the document security policy itself. The restrictions are based on some policies (dynamic in nature). Hence I am specifying permission callback as part of opening the AVDoc (using the AVDocPermReqProcpermReqProc;) most of the permissions are being honored by the tools and are working as expected.
The below are the list of things which I couldn't get working.
Disabling the UI Email option is not working.
Combine file and compare file tools is able to extract the pages from the document inspite of request being denied by the callback.
To test if the permissions from the pddoc layer are being honored I even tried removing most of permissions while opening the pddoc using the _t_PDDocOpenParams and corresponding function. Even this seems to not stop those tools from accessing the pddoc pages. Now I am not sure if this is a problem of the _t_PDDocOpenParams::restrictPerms or the tools themselves.
Needed suggestions to disable the above specified options or to get the restrictPerms working while opening the PDDoc as I have seen the combine tools and compare tools honoring those pdPerms in case of secured pdf files.