These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Batch processing - how to export all field names to a document

charlie6067
Registered: Nov 22 2006
Posts: 37

I just starting to use batch processing but can not figure out how to export a list of all field names in a PDF. The batch sequences window has a script for bookmark names but not field names. There's a script there for ListAllFields but the export only showed the form as rendered by Word. When working with other developers that do not have Acrobat, it's helpful to give them a list of form field names for their programming requirements.

Thanks,
Charlie
charlie6067

My Product Information:
Acrobat Pro 8.1, Windows
jimhealy
Team
Registered: Jan 2 2006
Posts: 146
You could just write a loop using numFields and getNthFieldName() and print them all out to the console. That will give you duplicates though.

You could also use our toolset to add a test submit button, but if a field has a different submitName value you will get that in the results and not the field name and there may be some fields that will not submit unless they are filled in.

Jim Healy
FormRouter, Inc.
Check out our FREE Advanced Acroform Toolset:
http://www.formrouter.com/tools

Jim Healy, Founder & CEO FormRouter Inc.
Chapter Leader AUG RTP NC
http://www.formrouter.com

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
The batch processing examples are examples of what can be done. You can use the ideas presented as a starting place to write your own code.

Have you looked at [url=http://www.acrobatusers.com/tutorials/2006/building_reports]Building PDF Reports with JavaScript[/url] by Thom Parker?

George Kaiser

jimhealy
Team
Registered: Jan 2 2006
Posts: 146
Do you really need batch processing or were you just thinking that you could use it to get the field names (my impression was the latter).

Jim Healy
FormRouter, Inc.
Check out our FREE Advanced Acroform Toolset:
http://www.formrouter.com/tools

Jim Healy, Founder & CEO FormRouter Inc.
Chapter Leader AUG RTP NC
http://www.formrouter.com

charlie6067
Registered: Nov 22 2006
Posts: 37
Hi Jim and G - thanks for the information. I'm not sure how to write loops but I can find out how. I'm sure the knowledge will help me with other projects. I haven't seen the reports pdf before but look forward to learning from it. thank you both!

Charlie
charlie6067