5 Replies Latest reply: Jan 12, 2010 3:33 AM by lrosenth RSS

    How to close Acrobat.exe from the task manager processes through plug-in?

    anaghad Community Member

      I have a plug-in in which we have a functionality of defining some keys and they are displayed as annotations on the PDF. Now, if the user defines such a key, an annot (i.e.a rectangular box) gets displayed on the PDF and if the user does not click custom menu say 'Close Key' then annot remains visible on the PDF.

       

      My problem is if in such a case i.e. the user has defined a key & if the user does not hit 'Close Key' and instead closes Acrobat by directly hitting close (i.e. [X] button at top right corner), then Acrobat exits; but the Acrobat.exe remains running in the Processes.

      If the user tries to open the same PDF again then a message pops up saying 'Cannot open file for viewing as its already in use...'.

      Note that any other PDF gets opened fine.

       

      Could somebody help me in giving me any ideas/suggestions on this? I want to exit the acrobat.exe from the processes so that the same PDF could get opened. As described above, the cause is the key (annot) was opened and user abrubtly exited Acrobat. Is there a way, that we could catch this Acrobat exit event in the plug-in? That way, I'd be able to clear off the annot (key) and then close acrobat.


      Please let me know asap.