> But with iText how can i access each button ?

AcroFields.Item fieldsItem = myAcroFields.getItem( "myFieldName" );
int numberOfFieldsWithTheSameName = fieldsItem.size()
for (int i = 0; i < numberOfFieldsWithTheSameName; ++i) {
  PdfDictionary curMerged = fieldsItem.getMerged( i );
  /** whatever **/
}


HOWEVER:  GetNewPushbuttonFromField and ReplacePushbuttonField don't take 
multiple instances of a field into account (they only take a name, not an 
index).  You'll need to look at the source to those two functions and write 
your own versions that take an index as well.  If you then submitted that code 
back to iText, that would be wonderful.

If you're not up for writing that code, one of the developers at iText Software 
(including myself, yes: I'm pimping myself... I feel kinda dirty) can undertake 
it for you.

--Mark Storer 
  Senior Software Engineer 
  Cardiff.com

#include <disclaimer> 
typedef std::Disclaimer<Cardiff> DisCard; 


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

Reply via email to