Reorder First Half of File

Post Reply
justin
Newbie
Posts: 7
Joined: Wed May 01, 2019 9:31 pm

Reorder First Half of File

Post by justin »

Can Pitstop Pro/Server be used to reorder the first half of a PDF? r1...(5-8) will reorder 1,2,3,4,5,6,7,8 into 4,3,2,1,5,6,7,8, but I'd like an Action that I don't need to change the value in the parentheses when the page count changes.
loicaigon
Advanced member
Posts: 378
Joined: Wed Jul 10, 2013 10:22 am

Re: Reorder First Half of File

Post by loicaigon »

With PitStop Server and Switch, you could use variables with your action list to set your ordering expression like this:
r1...([Switch.Calculation:Expression="round([Stats.NumberOfPages]/2+0.5)"]-[Stats.NumberOfPages])
HTH
Loic
justin
Newbie
Posts: 7
Joined: Wed May 01, 2019 9:31 pm

Re: Reorder First Half of File

Post by justin »

So it couldn't be done with just Pro and Server, the variable requires Switch?
yosimo
Member
Posts: 43
Joined: Tue Mar 27, 2018 6:25 pm

Re: Reorder First Half of File

Post by yosimo »

You could use a JavaScript to solve the task. I made a quick and dirty solution and saved it as an action for Acrobat.
Import the action "Reorder First Half of File" into Adobe Acrobat with the Action wizard and apply it to the currently opened document.
The action could also be applied to whole folders like in batch mode.
https://magentacloud.de/s/XNr5cksxNqfyjnt
yosimo
justin
Newbie
Posts: 7
Joined: Wed May 01, 2019 9:31 pm

Re: Reorder First Half of File

Post by justin »

Thanks, I've only ever done "Move first 2 pages to end of file" (Combine cover and text of book for proof) with Acrobat javascript action. I'll see if that works, although with any luck I won't need it again.
Post Reply