Hi!
Im using the Smartstream Designer Imposition to load different business cards and choosing template based on the width and height of Trim box. The problem is that I can't match them depending on the "." that isn't supported in template name or that I can't skip "Precision" when having the Trim box sizes...
I have done this so far:
[Switch.Calculation:Expression="[Stats.TrimBoxWidth]/72*25.4",Precision="1"]x[Switch.Calculation:Expression="[Stats.TrimBoxHeight]/72*25.4",Precision="1"][Job.Hierarchy:Segment=7,10]
The last part tells me what folder it landed in and is used to match current template.
The problem is following:
- When using the Precision it gives me one decimal at least - there is no way of skipping decimals att all?
- If I go on the code above i can create the name of the template - but since there is "." it can't match because the template name cuts off from first ".".
So a template named "55.0x85.0_4_4.impp" will be seen as "55".
Anyone know how to do this?
Width and Height in mm, but no Precision?
Precision is indeed limited to 1, you cannot use 0.
Not the most intuitive solution, but one without a script expression: put the calculation in "Attach job state" on a folder where the PDF passes. [Job.JobState] will contain 55.0x85.0. In the single-line text with variable where you refer to the template, you use [Job.JobState], Before . to get the first value, and [Job.JobState], After x Before . to get the second value.
I regularly "abuse" job state to put information in that I need later on and/or that require further massaging. You can consider it as a kind of private data, but without requiring scripting to set it.
Freddy
Not the most intuitive solution, but one without a script expression: put the calculation in "Attach job state" on a folder where the PDF passes. [Job.JobState] will contain 55.0x85.0. In the single-line text with variable where you refer to the template, you use [Job.JobState], Before . to get the first value, and [Job.JobState], After x Before . to get the second value.
I regularly "abuse" job state to put information in that I need later on and/or that require further massaging. You can consider it as a kind of private data, but without requiring scripting to set it.
Freddy