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

Count number of fields in all pages of a PDF document.

New Here ,
Nov 23, 2022 Nov 23, 2022

I need to count the number of fields in all pages of PDF form.  Is there a quick way to determine this w/out scripting?  

 

For instance, page 1 had 10 text fields, 5 checkboxes, 3 signature lines.  I would like to get the total count of 18 in total.   This chould aloso include the counts of subsequent pages.  

 

Thanks in advance for any direction.  

2.4K
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 ,
Nov 23, 2022 Nov 23, 2022

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

 

<moved from using the community>

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 ,
Nov 23, 2022 Nov 23, 2022

Without the script, I don't think so.

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 ,
Nov 23, 2022 Nov 23, 2022

Ok and with script?  I'm just not knowledgeable on scripting.   

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 ,
Nov 23, 2022 Nov 23, 2022

app.alert("This file has " + this.numFields + " fields.",3);

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 ,
Nov 23, 2022 Nov 23, 2022

Thank so much Nesa, this workly nicely.  Would you code this to do some math for me and generate the results in hours for in #Fields * 3 + 30 =  XHours. 
Exmample:  10*3 + 30 = 1 Hour 

 

Thanks again for the quick response.   

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 ,
Nov 23, 2022 Nov 23, 2022

You can calculate hours like this:

var nFields = this.numFields;
var hours = (nFields*3+30)/60;

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 ,
Nov 25, 2022 Nov 25, 2022
LATEST

Thanks, perfect... 

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 ,
Nov 23, 2022 Nov 23, 2022

You can use the FormReport plugin which is part of my free abracadabraTools, it lists all fields properties in a CSV file:

https://www.abracadabrapdf.net/?p=972

 

Capture_2211240015.png


Acrobate du PDF, InDesigner et Photoshopographe
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