I'm trying to add the PdfAnnotation for a PushbuttonField to a PdfTemplate object, so that I can repeat the button on each page of a document.
Is this something that I can do with a PdfTemplate? Or do I need to back up and use a PdfStamper approach? PdfTemplate template = writer.getDirectContent() .createTemplate(500, 500); PushbuttonField button = new PushbuttonField(...); ... PdfAnnotation buttonField = button.getField(); // how to add? writer.addAnnotation(buttonAnnotation); // adds to first page writer.releaseTemplate(template); writer.getDirectContent().addImage(Image.getInstance(template), ...); Thanks much, michael ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/