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.
I used the setLayer method of PdfAnnotation to set the layer before adding it. I can see there is an /OC entry in the annotation dictionary that looks correct, and according to the PDF Reference this should make the annotation disappear when the layer is not visible. Can anyone explain why this doesn't work? http://www.nabble.com/file/p25305257/Layers.pdf Layers.pdf -- View this message in context: http://www.nabble.com/Annotations-in-layers-tp25305257p25305257.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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/