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

49

Likes

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

Copy link to clipboard

Copied

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

Likes

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.

Likes

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

Copy link to clipboard

Copied

You can use this sequence in Adobe Acrobat DC Pro.

Likes

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
Adobe Community Professional ,
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?

Likes

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

Likes

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
Adobe Community Professional ,
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.

Likes

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

LATEST

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

Likes

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