If they "run when clicking on rectangular areas" - that means that they are associated with some annotation, either a Link or a Widget/Button, most likely. As defined in ISO 32000-1, an annotation can be directly associated with an OCG. Therefore, I would just associated the OCG with the annot and the conforming viewer will take care of hiding/showing the "rectangular areas".
As I said in my last email, it's probably time for you to go beyond the iText documentation... Leonard -----Original Message----- From: Corina Kertesz [mailto:[email protected]] Sent: Wednesday, March 25, 2009 12:27 PM To: [email protected] Subject: [iText-questions] "Re: Can PdfActions be enabled/disabled?" The actions that I want to disable/enable are either local goto actions or they execute javascripts that open dialogs. I am using them in a drawing and they run when clicking on rectangular areas. They are all added to the document by using PdfContentByte or templates using setAction(). Other actions would be those that change the state of the layers in the page. I would use PdfAction.setOCGstate() here. These actions would also run when clicking on a rectangle in my drawing. Here is where I want to also disable the actions added in other layers. Corina -- View this message in context: http://www.nabble.com/Can-PdfActions-be-enabled-disabled--tp22702367p22705460.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
