List all field names on a PDF using iText from Rails

Check out this code: http://github.com/jaywhy/pdf-stamper/tree/master

I haven’t used it, as it wasn’t around when I needed it, so I wrote my own, but this code looks very similar to what I wrote, so it may work well for what you need.

The highlighted line in this link shows how the fields can be listed:

http://github.com/jaywhy/pdf-stamper/blob/3f1f6bd7867994bd9124b8b1ffa613007903d22a/lib/pdf/stamper/rjb.rb#L35