Copy link to clipboard
Copied
I'm working on a project that uses fillable forms. For the developers' benefit, I would like to print a list of all the fields in the form, along with their properties (type, length, etc.). The printout should be in tab order, or at least grouped by page. I know I can get the field names in tab order using "Merge Form Data into Spreadsheet," but that doesn't give me any additional properties. Is there a script or tool out there that will give me what I need?
Copy link to clipboard
Copied
With Acrobat Javascript you can create a report of the fields and their properties.
Copy link to clipboard
Copied
Are you aware of a particular script that I could use? The ones that I've seen don't list the fields in tab order.
Copy link to clipboard
Copied
‌Javascript can't access the tab order.
Copy link to clipboard
Copied
Since you can get the list in tab order by exporting as you mentioned, just combine that with some scripting to get what you want. It wouldn't be fully automated and wouldn't include buttons, but should be helpful.
You mention an alternative of grouping by page, which is possible since each field has a page property, which is the page number or array of page numbers on which it resides, allowing you to program the script to sort fields by page.
Copy link to clipboard
Copied
Many have been presented but they might not meet your very specific requirements. You would have to modify them to meet your exact need. You first need to describe your report and identify the exact properties of the field object that you want and how you want them sorted. Then you need to determine how to layout the report realizing that some of the properties could be quite large. Now you can start using JavaScript to gather the data, probably into to an array you can manipulate like sorting the array into the order you want. Now you either output the data to the console and cut and paste or generate a report using Acrobat's report object.
I would look at creating a folder level script and adding a tool button or menu item so you could run this report on other PDF forms.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now