Page 1 of 1
Rename PDF after Splitting
Posted: Fri Jul 22, 2016 9:47 pm
by liver82
Hi to all,
I got a problem with the renaming of one PDF splitted.
I have a PDF, with two pages inside, named 1807NF10#, after that I had split it I would like to rename the 2 file in this way AEX18C10 and AEX18C11.
This is the flow I created:
And this is the rename job I created:
As you can see I created 5 actions, the last should have regular expresion that permit to change the last two characters in sequential mode but I'm not able to do this...
Someone can help me?
Thank you!
Re: Rename PDF after Splitting
Posted: Fri Jul 22, 2016 10:47 pm
by gabrielp
Can you expand on this?
liver82 wrote:the last should have regular expresion that permit to change the last two characters in sequential mod
I'm not sure if you can rename based on the rename sequences within the same Rename configurator, but you could certainly pass it through a second rename if that ends up being the problem.
I would consider re-designing this workflow because it seems very easy to screw things up this way.
Re: Rename PDF after Splitting
Posted: Fri Jul 22, 2016 11:06 pm
by liver82
Thank you for your reply!
I found this:
https://forum.enfocus.com/viewtopic.php?t=273 post but I can't setting for my situation, do you think that it could be done?
Re: Rename PDF after Splitting
Posted: Mon Jul 25, 2016 9:36 am
by freddyp
What you need on the last rename is a Switch-Calculation. Based on just one example I am not sure if the following calculation is right, but it shows the principle.
It looks like you start from a base number (10) to which you add a counter (0, 1, ...). After the split of the pdf all the files have a counter (001, 002, ...) at the end of the name proper, and if you subtract 1 from that counter and add it to the base number, you have what you need:
[Switch.Calculation:Expression="10+[Job.NameProper:Search="\d+$"]-1"]
Re: Rename PDF after Splitting
Posted: Mon Jul 25, 2016 10:30 am
by liver82
Thank you,
I solved the problem creating two renaming flow and adding this suffix:
[Switch.Calculation:Expression="[Job.NameProper:Segment="8-8"]+1"].
Thank you to all.