PDF page count

Post Reply
abonsey
Member
Posts: 98
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: 228
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: PDF page count

Post by sander »

Code: Select all

var theNumber = 	job.getVariableAsNumber("[Stats.NumberOfPages]");
				s.log(2, theNumber);
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.

Chat: open-automation @ gitter
abonsey
Member
Posts: 98
Joined: Fri May 24, 2013 5:10 pm

Re: PDF page count

Post by abonsey »

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