PDF page count

Post Reply
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

PDF page count

Post 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
sander
Advanced member
Posts: 308
Joined: Wed Oct 01, 2014 8:58 am
Location: Den Bosch

Re: PDF page count

Post by sander »

Code: Select all

var theNumber = 	job.getVariableAsNumber("[Stats.NumberOfPages]");
				s.log(2, theNumber);
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Re: PDF page count

Post by abonsey »

Thanks for that. All working fine now :)
Post Reply