Sankha Subhra Dey wrote: > Yes we are talking about the same thing :P > As I said, OCP = Optional Content Properties = OCProperties. I tend to > shorten it up when referring to it. > > Anyway, if someone could please tell me what's wrong with my invisible > annotation code, or point me to an example to add a Private section to > the document, that would be great.
You aren't adding Optional Content, you're adding an invisible annotation. Your question sounds like: I've baked a cake, why doesn't it taste like steak? Try the OCG examples that come with chapter 12: http://1t3xt.info/examples/browse/?page=toc&id=17 Note that those examples are for PDFs built from scratch. If you want to add layers to an existing doc, you'll need this to obtain a writer: PdfWriter writer = stamper.getWriter(); -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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
