Apply leading zero to PageCount 1-9

Post Reply
Dave23
Member
Posts: 41
Joined: Thu Oct 12, 2017 4:42 pm

Apply leading zero to PageCount 1-9

Post by Dave23 »

Alright all,

Does anybody know if it is possible without using a script to check the pagecount of a job and if the width of the count is 1-9 then add a leading zero?

I'm hoping maybe this could be done in the Switch.Calculation expression?

Cheers
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: Apply leading zero to PageCount 1-9

Post by Padawan »

You can add leading zero's using search and replace regular expressions. Unfortunately the only way to use them without scripting is using a rename job on the filename.

So you will have to add the page count to the filename, add leading zero's and get the number back out.

You can add leading zero's using the instructions here:

viewtopic.php?f=13&t=1882&p=6673&hilit= ... zero#p6673
Dave23
Member
Posts: 41
Joined: Thu Oct 12, 2017 4:42 pm

Re: Apply leading zero to PageCount 1-9

Post by Dave23 »

Nice one this worked well for me, appreciate the reply Padawan.

Cheers
Arthur
Member
Posts: 113
Joined: Sat Sep 09, 2017 11:58 pm
Location: Yateley, UK

Re: Apply leading zero to PageCount 1-9

Post by Arthur »

This can be armed with RegEx to find out whether your numbering is already DoubleDigit to not add 0 and make it 3digits if this by any chance is not what you need :)
Post Reply