Count of Pages in PDF
Posted: Thu Sep 28, 2017 7:12 pm
Hi,
I think I am stupid, but how do I count the Pages of an PDF?
- mdls won't work - a) via spotlight via launchctl deactivatet b) the flow is too fast
- I tried exiftool, but
doIt is empty - ok, I have to use there Switch 12 update 3 - mybe a bug there? If i paste getPages in Terminal I get my output, but in Switch is empty.
Is there a simple way to get the pagecount of my pdf?
I think I am stupid, but how do I count the Pages of an PDF?
- mdls won't work - a) via spotlight via launchctl deactivatet b) the flow is too fast
- I tried exiftool, but
Code: Select all
var getPages = ("/usr/bin/perl /usr/local/Cellar/exiftool/10.55/bin/exiftool -\"*Count\" " + OrigFile);
s.log(1, "getPages: " + getPages);
var doIt = Process.execute(getPages);
s.log(1, "doIt: " + Process.stdout);
var myOut = Process.stdout;
s.log(1, "myOut: " + myOut);
Is there a simple way to get the pagecount of my pdf?