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

Reply via email to