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?