Skip to main content
Participant
November 23, 2022
Question

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

  • November 23, 2022
  • 3 replies
  • 2683 views

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.  

    This topic has been closed for replies.

    3 replies

    JR Boulay
    Community Expert
    Community Expert
    November 24, 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

     

    Acrobate du PDF, InDesigner et Photoshopographe
    Nesa Nurani
    Community Expert
    Community Expert
    November 23, 2022

    Without the script, I don't think so.

    APT987Author
    Participant
    November 23, 2022

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

    Nesa Nurani
    Community Expert
    Community Expert
    November 24, 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.   


    You can calculate hours like this:

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

    kglad
    Community Expert
    Community Expert
    November 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>