Targeting 2nd to last page

Post Reply
User avatar
wilsonj
Newbie
Posts: 19
Joined: Mon Apr 04, 2011 9:55 pm

Targeting 2nd to last page

Post by wilsonj »

Hello

I'm trying to limit the execution of an Action List to the second to last page of a PDF in a very simple flow.

I have an Enfocus Pitstop Server configurator where the Action List is a specified file, and the Variable Set is a 'single-line text with variables defined'. In that definition I am using Switch Calculation to pull Stats.NumberOfPages and -1:

[Switch.Calculation:Expression="[Stats.NumberOfPages]-1"]

Although the values returned are correct (for instance, an eight page file returns '7'), I am getting the following error:

Variable Set '7' is not available
Dynamic property 'VariableSet' has invalid value '7'


The Action List is a simple 'Add Object'.

Any feedback is greatly appreciated.
Thank you
sander
Advanced member
Posts: 276
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Targeting 2nd to last page

Post by sander »

How did you add your variable to the action list?
User avatar
wilsonj
Newbie
Posts: 19
Joined: Mon Apr 04, 2011 9:55 pm

Re: Targeting 2nd to last page

Post by wilsonj »

The first step in the Action List is 'Select pages' using variable names with the following attributes:

Select: page range: [Number of pages]
sander
Advanced member
Posts: 276
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Targeting 2nd to last page

Post by sander »

Sorry for not being clear :)

I mean, do you add it like this?
viewtopic.php?f=13&t=1689&p=6054&hilit= ... +set#p6054
freddyp
Advanced member
Posts: 1022
Joined: Thu Feb 09, 2012 3:53 pm

Re: Targeting 2nd to last page

Post by freddyp »

You have been using the calculation as the name of the variable set. That is not going to work. You have to select an existing variable set, or create one, both through "Select variable set", edit or create a variable set, add a variable, define the value of the variable with your calculation, and use that variable in a preflight profile.

That is the hard way.

This is the easy way:
Screen Shot 2017-03-23 at 9.20.52.png
Screen Shot 2017-03-23 at 9.20.52.png (35.96 KiB) Viewed 7901 times
The screenshot is bigger than in the Action List editor UI so you can read it better :)
User avatar
wilsonj
Newbie
Posts: 19
Joined: Mon Apr 04, 2011 9:55 pm

Re: Targeting 2nd to last page

Post by wilsonj »

We're running Pitstop Pro 13, but don't seem to have the option to assign page range using the 'R_' id.

Is that specific to a newer version, or are we missing something?

Thank you for your help.
freddyp
Advanced member
Posts: 1022
Joined: Thu Feb 09, 2012 3:53 pm

Re: Targeting 2nd to last page

Post by freddyp »

This was added in PitStop 13 update 1.
Post Reply