Skip to main content
Inspiring
August 2, 2016
Question

C# DLL call from plugin will not work in Reader, only in full Acrobat

  • August 2, 2016
  • 1 reply
  • 1617 views

Hi,

I have made a plugin for Acrobat to integrate with our document management solution. I need the main functionality to reside in a C# library, so I have made a C++ plugin to handle the menu and integration with Acrobat, and a wrapper library in C++ that binds to the C# library.

Now, this works fine in full Acrobat, all versions from 9 to DC.

However, when I have signed the plugin for Reader, the wrapper library is unable to load the C# library.

No helpful error message is given!

So I wonder, is Reader and Acrobat running in different thread or security modes, or anything else that is causing problems?

I have tried to enforce the C# library in X86 mode, and I have stripped all code, references and dependencies to rule out reference errors.

This topic has been closed for replies.

1 reply

lrosenth
Adobe Employee
Adobe Employee
August 2, 2016

Yes, Reader (by default) runs in Protected Mode (aka a sandbox). There is documentation about this in the SDK.

Inspiring
August 2, 2016

Thanks, I found the setting. When I disabled it, my solution seems to work!

But I guess I am not allowed to disable it at our customers, so I need to figure out what it does, and if we are able to make a better solution. Thanks anyway!

lrosenth
Adobe Employee
Adobe Employee
August 2, 2016

All the details are in the documentation – there is also more online in our Enterprise Guide.