Skip to main content
Agent-Smith.dev
Participant
April 26, 2024
Question

Writing a 3rd party plugin: Custom policy file sanity checks failed

  • April 26, 2024
  • 1 reply
  • 155 views

I am developing a 3rd party plugin. Since I need write access to the file system and I do not want to switch off the protected mode I added a policy for my plugin.

When starting Acrobat, the log files of Adobe Acrobat Protected Mode Logging says:

Custom policy file sanity checks failed: C:\Program Files\Adobe\Acrobat DC\Acrobat\MyPlugIn_policyconfigfile.txt

 

When I add the "standard" policy file ProtectedModeWhitelistConfig.txt everything is fine. The logging says:

Found custom policy file: C:\Program Files\Adobe\Acrobat DC\Acrobat\ProtectedModeWhitelistConfig.txt

Adding custom policy: FILES_ALLOW_ANY = d:\MyPlugInFiles\*

 

It makes no difference if MyPlugIn_policyconfigfile.txt even exists or is empty. The error message remains the same. It can't be a syntax issue either, since the same policy works fine in ProtectedModeWhitelistConfig.txt.

 

I also checked the read access to MyPlugIn_policyconfigfile.txt which is ok.

 

Did I overlook an additional switch to enable 3rd party plugins?

 

 

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
April 26, 2024

A plug-in has limited access to the file system when Acrobat is in Protected mode. For example, the plug-in can access the Acrobat User area, i.e., /users/<user>/appdata/roaming/Adobe/Acrobat/DC/

 

But if it is necessary to gain access to other areas a Broker is necessary.  The policy files won't do it. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often