No that was a digression :-) What I had said was that I have already
hidden the information in OCProperties, and was looking for a way to add
an invisible annotation. The code I wrote isn't working, which I had
posted in my original mail. And I was looking for a way to add the
information to the Private section in a PDF file.






On Sat, 2008-12-06 at 19:51 +0100, 1T3XT info wrote:
> 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();


------------------------------------------------------------------------------
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

Reply via email to