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

Count Pages in Directorys and Files

New Here ,
May 25, 2022 May 25, 2022

Copy link to clipboard

Copied

Hello,

with an older version of Adobe Acrobat we could count pages of files in a bunch of directorys. We need this to know what our costumers have to pay for our work.

Is there a script for Acrobat DC to make the same work than before?

 

Thank you

Ivo

TOPICS
How to

Views

4.1K

Translate

Translate

Report

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 ,
May 25, 2022 May 25, 2022

Copy link to clipboard

Copied

What have you used in the old version of Adobe Acrobat Pro?

Votes

Translate

Translate

Report

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 ,
May 25, 2022 May 25, 2022

Copy link to clipboard

Copied

it was named "count pages" - a java script. It was in tools when it was opened once in acrobat (X, Pro whatever). You could choose directorys from the server or where ever. It counted through and showed number of files and number of pages.

Votes

Translate

Translate

Report

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 ,
May 25, 2022 May 25, 2022

Copy link to clipboard

Copied

You can use this sequence in Adobe Acrobat DC Pro.

Votes

Translate

Translate

Report

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 ,
May 25, 2022 May 25, 2022

Copy link to clipboard

Copied

You can do it using a simple script in an Action. Do you want to total all the pages of all the files in the folder, or to print out the number of pages in each file?

Votes

Translate

Translate

Report

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 ,
May 25, 2022 May 25, 2022

Copy link to clipboard

Copied

I need the total of all pages in one directory or "many" directorys within one specific place.

Filedirectorys (specific place)
- filedirectory1

- filedirectory2

....

 That would be great to have (maybe to know how its done)

Thx so far

Votes

Translate

Translate

Report

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 ,
May 25, 2022 May 25, 2022

Copy link to clipboard

Copied

Go to Tools - Action Wizard and create an Action with a command to execute the following JS code:

 

if (global.pagesCounter==null) global.pagesCounter=0;

global.pagesCounter+=this.numPages;

 

Save it as "Count Pages".

Now create a Custom Command with this code:

 

if (global.pagesCounter==null) app.alert("You must first run the \"Count Pages\" Action.");

else {app.alert("Number of pages counted: " + global.pagesCounter,3); delete global.pagesCounter;}

 

Run the Action on your files/folder (if you select a folder it will automatically process all the sub-folders underneath it, too, but will also convert all non-PDFs to PDF files, so be careful!), and then click the Custom Command to display the results.

Votes

Translate

Translate

Report

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 ,
May 30, 2022 May 30, 2022

Copy link to clipboard

Copied

Thank you soooooo much!

It works perfect for us. Now I make a "manual" for others, so if they need it also somewhere in our company.

Greetings

Ivo

Votes

Translate

Translate

Report

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 ,
Mar 30, 2024 Mar 30, 2024

Copy link to clipboard

Copied

Would someone please explain clearly and completely, step-by-step, how to create this Custom Command?

Votes

Translate

Translate

Report

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 Beginner ,
Jun 07, 2024 Jun 07, 2024

Copy link to clipboard

Copied

LATEST

In Action Wizard, on the top bar choose New Custom Command and choose 

Execute JavaScript

from the customizable commands
 

Hope it helps

 

Votes

Translate

Translate

Report

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 28, 2024 Feb 28, 2024

Copy link to clipboard

Copied

 Am figuring out how to do this but a question. We have a lot of certified documents and other restricted documents  that we have been using the
Combining Files process" to try and count but it is not including many types of docs with restrictions, eg. Certified and others.... will this action command count them if they are in the middle of the combinations of directories.  Appreciate any help !. Thanks

 

Votes

Translate

Translate

Report

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 28, 2024 Feb 28, 2024

Copy link to clipboard

Copied

If the file can be opened this code should work on it. If it requires a password to open, then it won't work.

Votes

Translate

Translate

Report

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 29, 2024 Feb 29, 2024

Copy link to clipboard

Copied

thank you.  Can i just copy this action script above and try that? or do i have to develop for my directories? Thank you.

Votes

Translate

Translate

Report

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 29, 2024 Feb 29, 2024

Copy link to clipboard

Copied

Yes, you can run it as I posted it on your files.

Votes

Translate

Translate

Report

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