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
Copy link to clipboard
Copied
What have you used in the old version of Adobe Acrobat Pro?
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.
Copy link to clipboard
Copied
You can use this sequence in Adobe Acrobat DC Pro.
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?
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
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.
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
Copy link to clipboard
Copied
Would someone please explain clearly and completely, step-by-step, how to create this Custom Command?
Copy link to clipboard
Copied
In Action Wizard, on the top bar choose New Custom Command and choose
Execute JavaScript
Hope it helps
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
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.
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.
Copy link to clipboard
Copied
Yes, you can run it as I posted it on your files.