Add slug line (Current page no) [SOLVED]

Post Reply
User avatar
magnussandstrom
Advanced member
Posts: 517
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Add slug line (Current page no) [SOLVED]

Post 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?
Last edited by magnussandstrom on Wed Sep 10, 2025 9:13 am, edited 2 times in total.
jan_suhr
Advanced member
Posts: 690
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Add slug line (Current page no)

Post by jan_suhr »

Can't you add that in the imposition?
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
User avatar
magnussandstrom
Advanced member
Posts: 517
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Add slug line (Current page no)

Post 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.
freddyp
Advanced member
Posts: 1145
Joined: Thu Feb 09, 2012 3:53 pm

Re: Add slug line (Current page no)

Post by freddyp »

The solution is much simpler than that: just add %Page Number% in your string in the place where you have [CurrentPageNumber].
User avatar
magnussandstrom
Advanced member
Posts: 517
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Add slug line (Current page no)

Post 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!
Post Reply