search for: getacrofields

Displaying 1 result from an estimated 1 matches for "getacrofields".

2009 May 25
2
Looping through java hashmap from ruby through rjb
....iterator(); # # //iterate through HashMap values iterator # while(itr.hasNext()) System.out.println(itr.next()); So, I took a stab at the ruby version: # I have a java hashmap called fields that was created using iText thusly reader = pdfreader.new( "pdf_file.pdf" ) @form = reader.getAcroFields() fields = @form.getFields() # this is a hashmap of all fields on form fields._classname # entere in irc displays: java.util.HashMap # So, following the java code above c = fields.values() itr = c.iterator() while itr.hasNext() p itr.next() end Instead of getting the field names, I get #<#...