Skip to main content
Participant
December 19, 2017
Answered

How to access C# based COM component from Adobe plug-in

  • December 19, 2017
  • 3 replies
  • 2744 views

I want to access the C# base COM component (i.e., tlb file) from the Adobe Plugin Code.

Please suggest me how to use the broker process in order to achieve the accessibility of .net based COM component even when the Protected Mode is enabled.

I was able to create a Adobe Reader plug-in by modifying the “BasicPlugin” sample.

My plug-in contains few buttons. When the toolbar buttons are selected the application should display a form.

The form is written in C# and the plug-in in VC++.

I was using interop to access the C# code from plug-in code.

Unfortunately, it does not work when Reader Protected Mode is ON.

Thanks.

This topic has been closed for replies.
Correct answer Bernd Alheit

Read this:

Acrobat DC SDK Documentation

3 replies

Thom Parker
Community Expert
Community Expert
December 19, 2017

Read this specific page in the SDK:

Acrobat DC SDK Documentation

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Thom Parker
Community Expert
Community Expert
December 19, 2017

Not Possible, or at the very least it shouldn't be.

Acrobat was designed so that it only operates with a single COM component, the IAC, which calls features in Acrobat, including globally defined JavaScript functions/objects. You cannot call external code through the IAC or define an alternate Active X module for Acrobat. Your not supposed to be able to do this, but have fun. I'm sure there is a way around it.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
December 19, 2017