Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Plugin with PDDocClose not working and crashing Adobe

$
0
0

Hi,

I have written an Adobe plug-in which creates a menu item, performs various functions when selected and then tries to close the document. With the code cut down to its bare minimum as below it won't close the document and causes Adobe itself to crash.

I have also tried this from a toolbar button and it still crashes.

Any help with this would be greatly appreciated.

Regards

Stuart

 


ACCB1 void ACCB2 ShowButtonMessage (void* data)
{
AVAlertNote ("Button clicked...closing document");
AVDoc avDoc2 = AVAppGetActiveDoc();
PDDoc pdDoc2 = AVDocGetPDDoc (avDoc2);
PDDocClose(pdDoc2);
}


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>