When the zoom level is changed in a way that would invoke a change in optional content, your JavaScript (that is registered to that OCG) will be invoked.
So it's not on EVERY call to zoom in/out - just when an OCGs visibility state is changed. If you need EVERY change, you'd need a custom plugin to Acrobat/Reader. -----Original Message----- From: dhryvastov [mailto:[email protected]] Sent: Tuesday, September 14, 2010 9:29 AM To: [email protected] Subject: Re: [iText-questions] Is it possible to fire event after zooming in/out? Hi Leonard - Many thanks for your reply. Your post has been very helpful for me. I have learned about new helpful iText features which I didn't use before. After revising examples from the book I have got understanding of PDF Layers, JavaScript in PDF, zoom level for OCG. But one question is still opened for me: how can I trigger my JavaScript on zoom in/out button clicked? I saw events for opening document, printing it, closing etc. But didn't find for changing zoom level... Do you have any knowledge about this? Appreciate your help, - Denys -- View this message in context: http://itext-general.2136553.n4.nabble.com/Is-it-possible-to-fire-event-after-zooming-in-out-tp2537647p2538977.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
