Michael Brewer-Davis wrote:
> 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.

PdfTemplate is used for form XObjects.
A form XObject contains a content stream.
A pushbutton field is an annotation.
Annotations are never part of a content stream.
Therefore your approach is wrong.

If you want to repeat the button on every page,
you should use a page event.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
_______________________________________________
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/

Reply via email to