On 10/10/2011 13:48, Sailesh K wrote:
Hi,
Im creating an OCG in a pdf and looking to add text fields and buttoins to it
on top of the OCG. This should theoritically be straight-forward since
annotations are supposed tp foat on top of the content, but the
annotations dont show up. Currently adding the annotations just
before ending the layers as below:
Rectangle rect2 = *new*Rectangle(300, 806, 360, 788);
TextField _sUserName_ = *new*TextField(writer, rect2, "sAddress");
content.endLayer();
any ideas why this might be happening?

It's straightforward.
It doesn't matter if you add them before or after content.endLayer(),
because annotations are added on top of the content anyway.

Note that I don't see you adding the annotations though.
Do you have writer.addAnnotations(sUserName.getFormField()); somewhere?
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to