Apply leading zero to PageCount 1-9

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

Apply leading zero to PageCount 1-9

Post by Dave23 » Fri Nov 09, 2018 3:23 pm

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
Member
Posts: 153
Joined: Mon Jun 12, 2017 8:48 pm

Re: Apply leading zero to PageCount 1-9

Post by Padawan » Fri Nov 09, 2018 9:24 pm

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: 24
Joined: Thu Oct 12, 2017 4:42 pm

Re: Apply leading zero to PageCount 1-9

Post by Dave23 » Wed Nov 14, 2018 8:04 am

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

Cheers

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

Re: Apply leading zero to PageCount 1-9

Post by Arthur » Wed Dec 05, 2018 1:45 pm

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