Bruno Lowagie wrote: > Kristof Heiremans wrote: >> The thing is: I need a button but i'm not writing a form but just an online >> dynamicly generated pdf page. > > By adding a button to a PDF, you are implicitly creating a form.
If you really don't want to use a button in a form, you can use an annotation: http://www.lowagie.com/iText/gotoannotation.pdf I made the annotation like this: PdfAnnotation button = PdfAnnotation.createLink(writer, new Rectangle(36, 780, 108, 800), PdfAnnotation.HIGHLIGHT_INVERT, new PdfAction("index.html")); writer.addAnnotation(button); This looks easier, but if you want the annotation to look like a button that is not printed, you'll have to do some extra work. I think you'll find it easier to use the form button I used in the previous example. br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
