PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
I *think* so. You'd have to replace the bookmark action handler with one of your own. It wouldn't be that much work... most of your actions could just be passthrough calls to the real deal. Look up "AVActionHandler" in the Core API reference. Enumerate, register, etc. I think this ends up intercepting all "link to dest" type annotations (don't remember the exact name off the top of my head), at which point determining if it was a genuine bookmark click or a click on a PDF page link (or something else, like a custom menu item link) would become a bit more challenging. I'd imagine the solution would end up being Highly platform-specific... "Are you in this window? No, okay what about this one?" Another way would be to go through each document as it was opened and change all the bookmark actions to some custom action of your own. This new action wouldn't have to worry about all link actions, just your custom bookmark action. You'd use the same passthrough code for most of the callbacks in your own action handler. The new issue here is cleanup... in "willSave" you'd have to change them all back to their original actions, and in "didSave" you'll have to change them again to your custom action. Whee. You'd also have to mess with the document's "dirty" flag as needed. Either way, non-trivial but doable. I'm sure someone else here can think of another approach too. --Mark Storer Software Engineer Cardiff Software #include <disclaimer> typdef std::disclaimer<Cardiff> Discard; > -----Original Message----- > From: Nils Andersen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 4:20 PM > To: [EMAIL PROTECTED] > Subject: [PDFdev] bookmark clicks > > > > PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com > _____________________________________________________________ > > Is there a way to capture bookmark clicks from an Acrobat 5.0 plug-in > written in C++? > > Nils Andersen > World Graphics, Inc. > > > > To change your subscription: > http://www.pdfzone.com/discussions/lists-pdfdev.html > To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
