1 person found this helpful
Are all of those files located under a single folder? If so, and if you have Acrobat Pro, it's possible to use a batch process that will sum up all the pages of all the files in that folder.
What OS? if you were on a mac then then number of pages is stored in the file metadata and is available to 'mdls'
This sounds exactly like what I need. Can you go into more detail about how to do this?
You could give this a try from the PDF point of view its AppleScript and the mdls is in the shell call.
set This_Folder to (choose folder with prompt "Please choose a folder of PDF files…" without invisibles)
tell application "Finder"
set Total_Pages to 0
set PDF_List to every file of This_Folder whose kind is "Adobe PDF document"
if (count of PDF_List) ≥ 1 then
repeat with i from 1 to (count of PDF_List)
set PDF_Path to POSIX path of (item i of PDF_List as alias)
set This_Count to my PDF_Pages(PDF_Path)
set Total_Pages to Total_Pages + This_Count
display dialog Total_Pages
display dialog "NO PDF's were found" giving up after 2
do shell script "/usr/bin/mdls -name kMDItemNumberOfPages " & ¬
quoted form of This_PDF & " | /usr/bin/grep -o '[0-9]\\+$'"
on error Error_Message number Error_Number
if Error_Number is 1 then
display alert "Page Count Unavailable" message ¬
"The page count for “" & This_PDF & ¬
"” is unavailable." giving up after 2
display alert "Error " & Error_Number message ¬
Error_Message giving up after 2
Contact me by PM or an email.