Page 1 of 1

Adding Blanks to Odd Page Counts

Posted: Thu Dec 12, 2024 9:37 pm
by MichaelG
I'm trying to find a way to detect an odd page count, and then add a blank page so that every job sent through the Flow has an even page count.
I can do it with a Pitstop Server Preflight, but it gets time-consuming especially when we're doing this to 5,000 jobs.
Any ideas?

Re: Adding Blanks to Odd Page Counts

Posted: Fri Dec 13, 2024 11:09 am
by tdeschampsBluewest
You can detect the odd number of page by doing a check in an arrow connection, it will avoid opening pitstop for unecessary document.

Code: Select all

[Switch.Calculation:Expression="[Stats.NumberOfPages]%2"]
If equal to 0, it's an even number, otherwise it will be 1, so an odd number.

Re: Adding Blanks to Odd Page Counts

Posted: Fri Dec 13, 2024 9:44 pm
by MichaelG
Yes, That worked. Thank you.

Re: Adding Blanks to Odd Page Counts

Posted: Mon May 26, 2025 7:31 am
by r.zegwaard
Hi,

I think there is an easier solution.
Set the action "Add pages" to add "Until a multiple of 2"

Image

Re: Adding Blanks to Odd Page Counts

Posted: Mon May 26, 2025 9:47 am
by loicaigon
I think our friend wanted to avoid running PS if not necessary. I.e. if the number of pages is already even.
Thomas' answer in that regard is indeed the best way to go. Fastlane could as well be used with mimimal performance impact.
But in that case, the condition with metadata simply makes sense.