Copy link to clipboard
Copied
I work on pdf editor plugin for adobe acrobat pro. So my issue is whenever i open a window(lets say tool window of the plugin) and i click on the other adobe tools the plugin window gets closed. I was wondering if there is a way to keep the plugin window open unless u explicitly close it. but u have to be able to work with other adobe tools.i am thinking of ways to work with handle returned by the window
Copy link to clipboard
Copied
How are you creating the plug-in's user interface? What operating system? Which version of Acrobat?
It is definitely possible to keep a window active while you are working with other tools in Acrobat. However, this is not the right forum for this, I will move your question to the Acrobat SDK forum.
Copy link to clipboard
Copied
Hi karl, Thanks for the reply. So to develop the plugin ui , I use windows forms( xaml) (.net ). I use COM to communicate between c++ code and c#. The data gets transferred between them cpp and c#. Also if possible can u please post the forum link here
Copy link to clipboard
Copied
If you are creating a tool, then you must have provided functions for managing the tool when it was registered with Acrobat. Are you using the Activate and Deactivate functions to display and close the tool window?
Are you displaying the window as Modal? or Modless?
C# operates outside of the Acrobat Context. So a window created in C# is not directly affected by the Acrobat plug-in environment. I would think that there is something in the plug-in code that is telling the C# app to close the window.
Copy link to clipboard
Copied
yes. I am using the Activate and Deactivate functions to open (AVDocSetActiveTool) and close the window. I use both Modle and Modless form to create the UI.After the the Activate function activates the tool, there is custom function showmarkingtoolwindow that takes the boolean value. This function handles the part where tool Ui is drawn and it calls the c# through COM to load the toolbar UI. i tried to keep the toolbar active by directly passing the value as true to this function. but the issue is the toolbar still closes when i open other adobe specific tools.I believe showmarkingtoolwindow is not the culprit here as it is only a UI helper. I was wondering if something could be done with Activate functions?
Copy link to clipboard
Copied
It doesn't sound like your issue is as much about the SDK, as it is in how the UI is implemented.
The code doesn't have to close the tool window on Deactivate. The Activate/Deactivate are about who gets the mouse. Make the tool window separate, lets call it the plug-in window. Use a toolbar button or menu items to display/hide it. If a tool is required for performing an action, then use a button on the plug-in window to activate/deactivate it.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now