Skip to main content
Participating Frequently
June 10, 2020
Question

Restrict permissions of the pddoc during opening using _t_PDDocOpenParams::restrictPerms

  • June 10, 2020
  • 1 reply
  • 357 views

Hello, 

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 AVDocPermReqProc permReqProc;) 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.

  1. Disabling the UI Email option is not working.
  2. 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.

 

Thanks & Regards,

This topic has been closed for replies.

1 reply

Legend
June 10, 2020

I think email was replaced by Share and nobody thought to update the API. Similarly the API was forgotten when compare was rewritten a few years ago. Feature requests: https://www.adobe.com/products/wishform.html

Or if you feel it's a bug, the same form. Be sure to state your business case clearly and make your request general, to increase the number of votes you might get. Votes are counted.

VeraUser1Author
Participating Frequently
June 10, 2020

Thank you for your quick response. Any other alternatives / suggestions? Like is there any way to disable those tools and buttons when the current document is open?