Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Printing list of form fields with properties?

New Here ,
Feb 10, 2016 Feb 10, 2016

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?

TOPICS
Acrobat SDK and JavaScript
864
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2016 Feb 10, 2016

With Acrobat Javascript you can create a report of the fields and their properties.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 10, 2016 Feb 10, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2016 Feb 10, 2016

‌Javascript can't access the tab order.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 10, 2016 Feb 10, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 10, 2016 Feb 10, 2016
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines