Would creating the Rectangle with llx, lly, urx and ury set to 0 work? Like... PdfAnnotation pdfAnnotation = PdfAnnotation.createText(stamper.getWriter(), new Rectangle(0, 0, 0, 0),"Comment", pattern, false, null);
----- Original Message ----- From: "Sankha Subhra Dey" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" <[email protected]> Sent: Thursday, December 04, 2008 3:25 PM Subject: Re: [iText-questions] iText invisible annotation > I am trying to hide some information in multiple places within a pdf > file. I could store them in the OCP section (doesn't show up on AR or > xpdf), and I also wanted to create an invisible annotation. I tried to > store it in the Private section, but I couldn't. > > SSD > > > On Thu, 2008-12-04 at 15:20 -0500, Leonard Rosenthol wrote: > > 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 > > > > > -------------------------------------------------------------------------- ---- > 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 > ------------------------------------------------------------------------------ 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
