I just updated my code to iText 2.1.5 and noticed that
'AcroFields.Item.widgets' is marked as deprecated.

I have a for loop that loops through all the widgets like so:

for (Iterator<?> i=widgets.iterator(); i.hasNext(); ) {
   dict = (PdfDictionary)i.next();
}

Once the widgets field is no longer public my code will break, so I'm
looking for an alternative.

I see there is a AcroFields.Item.getWidget(int idx) method, but how would I
get the length of the widget array to make ensure that the index is in
bounds?


-- 
View this message in context: 
http://www.nabble.com/Alternative-to-AcroFields.Item.widgets--tp24224746p24224746.html
Sent from the iText - General mailing list archive at Nabble.com.


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