Why do you want to do this?

Leonard

On Dec 4, 2008, at 2:45 AM, Sankha Subhra Dey wrote:

> Hi
>
> I have been (fruitlessly) trying to create an invisible annotation  
> in a
> PDF file from a PdfStamper. I see the annotation in the pdf, but it is
> always visible.
>
> Here is my code:
>
> = 
> = 
> = 
> ======================================================================
> PdfAnnotation pdfAnnotation =
> PdfAnnotation.createText(stamper.getWriter(), new Rectangle(1, 1, 1,  
> 1),
> "Comment", pattern, false, null);
>
> pdfAnnotation.put(PdfName.F, new  
> PdfNumber(PdfAnnotation.FLAGS_NOVIEW |
> PdfAnnotation.FLAGS_INVISIBLE | PdfAnnotation.FLAGS_HIDDEN));
>                       
> stamper.addAnnotation(pdfAnnotation, 1);
> = 
> = 
> = 
> ======================================================================
>
> I know this topic has probably been covered before, because I  
> modeled my
> after something I read in the archives. Could someone tell me what's
> missing?
>
> Thanks,
> SSD.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win  
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in  
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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
>


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