Page 1 of 1

Add slug line (Current page no) [SOLVED]

Posted: Tue Sep 09, 2025 3:41 pm
by magnussandstrom
Hi!

I’m building a Switch flow where I need to add a slug line to an imposed PDF. My plan is to insert the text using a PitStop Action within the flow.

The slug line should look like this:
[Job.NameProper] Page: [CurrentPageNumber] of [Stats.NumberOfPages] Date: [Switch.Date:Format="yyyy-MM-dd",TimeZone="System"] - [Switch.Date:Format="hh:mm:ss",TimeZone="System"]

My question is: how can I reference the CurrentPageNumber as a variable? I know that in a PitStop Action I can use %Page Number%, but what would be the equivalent when working with a Switch PitStop variable set?

Re: Add slug line (Current page no)

Posted: Tue Sep 09, 2025 4:55 pm
by jan_suhr
Can't you add that in the imposition?

Re: Add slug line (Current page no)

Posted: Tue Sep 09, 2025 5:33 pm
by magnussandstrom
jan_suhr wrote: ↑Tue Sep 09, 2025 4:55 pm Can't you add that in the imposition?
In this case no. The files comes from an outside source.

Re: Add slug line (Current page no)

Posted: Wed Sep 10, 2025 8:35 am
by freddyp
The solution is much simpler than that: just add %Page Number% in your string in the place where you have [CurrentPageNumber].

Re: Add slug line (Current page no)

Posted: Wed Sep 10, 2025 9:01 am
by magnussandstrom
freddyp wrote: ↑Wed Sep 10, 2025 8:35 am The solution is much simpler than that: just add %Page Number% in your string in the place where you have [CurrentPageNumber].
Thanks Freddy! I didn't know that standard PitStop variables would work that way!