Skip to main content
Participating Frequently
Apr 23, 2024 7:52 PM UTC
Question

Unable to load 3rd party adobe acrobat Plugin in protected mode.

I have written an Adobe Acrobat plugin using Adobe SDK which helps me to modify PDF. It runs perfectly well when protected mode is turned off. However, as soon as I turn protected mode on, my DLL is not recognised and doesnt even load. Am I missing something here? What should I include in my DLL so that it gets recognised and loads up in protected mode too?

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Abambo
Community Expert
Community Expert
Apr 26, 2024 11:12 AM UTC

Is there no indication for this in the SDK documentation? I suppose that the DLL needs to be included somewhere in a trusted extensions list.

 

But as I'm not an extensions programmer, I can't help further. I will just move this to the Acrobat SDK forum, that looks to me more appropriate for your question.

Translate
ABAMBO | Hard- and Software Engineer | Photographer
Participating Frequently
Apr 26, 2024 1:13 PM UTC

HI Abambo,
Thanks for the reply. To update this, I was able to load DLL , but I am unable to make any api calls through my plugin. I modified some policies even, but still it is unable to make api calls, where as If I disable protected mode, it works fine. 

 Running them , I just receive an error stating : 
Code:  await PostAsync<T>(url, body);

An error occurred while sending the request.
Inner Exception : The underlying connection was closed: An unexpected error occurred on a receive. 

I found that adobe is able to make its own internet calls smoothly, Like check for upgrades and all. Is there any way where I can modify Adobe, so that it loads my sites. I tried adding in Trusted Manager and changed allow pdf files to access websites. 

Thanks in Advance. 

Translate
Thom Parker
Community Expert
Community Expert
Apr 26, 2024 4:38 PM UTC

Have you read this article?

https://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/sandboxprotections.html

 

You'll find an example Broker plugin in the SDK download.

 

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