Unable to disable email option by denying PDPermReqOprUIemail permission.
I am creating a plugin where it creates and opens a secured PDF file. As part of opening the secured PDF file I am using AVDocOpenFromPDDocWithParams and specifying callback for the permissions. The other options for disabling the print and save, seems to work fine as part of the callback. However, I am unable to disable the email button by denying "'PDPermReqOprUIemail'' as per the logs this particular permission was never requested. Is this feature broken or am I doing something wrong?
On similar lines, starring this document is also uploading this document to the cloud, how can this also be disbaled?
Thanks in advance.
params.usePermReqProc = true;
params.permReqProc = pPermReqCallback;
PermReqCallback(AVDoc doc, PDPermReqObj obj, PDPermReqOpr opr)
{
// Deny permission to enable the email button
if (PDPermReqOprUIemail == opr) {
return 1;
}
//Handle other permission request cases....
}
