Page 1 of 1

PDF page count

Posted: Mon Apr 11, 2016 12:37 pm
by abonsey
I'm trying to get a script to run that has the total page count as a variable that I can use from an input PDF
Can anybody help with the correct expression to use to create this as a variable. I keep failing.

TIA for your help

Re: PDF page count

Posted: Mon Apr 11, 2016 1:01 pm
by sander

Code: Select all

var theNumber = 	job.getVariableAsNumber("[Stats.NumberOfPages]");
				s.log(2, theNumber);

Re: PDF page count

Posted: Tue Apr 12, 2016 11:49 am
by abonsey
Thanks for that. All working fine now :)