If you change it to Stamper.addAnnotation(annot, 1) - it fails Or PdfStamper.add.Annotation(annot, 1) it fails
So I have given it a page. Ask me another question. john renfrew Right Way Up Office +44 1675 475341 Fax +44 1675 475342 Mobile +44 7767 443992 -----Original Message----- From: 1T3XT info [mailto:[email protected]] Sent: 31 October 2009 10:39 To: Post all your questions about iText here Subject: Re: [iText-questions] set.Annotation John Renfrew wrote: > This code snippet works when it is part of a writer stream but not stamper > > Just want to add a clickable highlight to an existing PDF > > Any ideas as to why???? It fails when you add the Stamper.addAnotation line It would also fail if you'd ask a human to add the annotation manually. You'd automatically get the counter-question: "OK, but on what page do you want me to add the annotation?" -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ 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 Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ 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 Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
