Page 1 of 1

Apply leading zero to PageCount 1-9

Posted: Fri Nov 09, 2018 3:23 pm
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

Re: Apply leading zero to PageCount 1-9

Posted: Fri Nov 09, 2018 9:24 pm
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

Re: Apply leading zero to PageCount 1-9

Posted: Wed Nov 14, 2018 8:04 am
by Dave23
Nice one this worked well for me, appreciate the reply Padawan.

Cheers

Re: Apply leading zero to PageCount 1-9

Posted: Wed Dec 05, 2018 1:45 pm
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 :)