On 9/5/09 11:05 AM, "Tony Stevens" <tony.stev...@turnkey.com.au> wrote:
> I'm doing some experiments to see what I can achieve with PDF optional
> content, and I'm confused with what's happening when I add an annotation in
> a specific layer. In the PDF below, page 1 layer 2 has a link (the red X) to
> show the alternate version of the page in layer 1. This works, but when
> layer 2 is no longer visible, the link is still active.
>
    That is correct.  Remember that it is optional CONTENT - not optional
ANNOTATIONS!  So via OCGs, you can only "turn off" content.  If you wish to
also hide the annotation itself - then you need to use JavaScript
(annot.hide(), I believe).
 
Leonard


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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/

Reply via email to