Precision Parameter Not Working
Posted: Wed Feb 14, 2018 8:59 pm
I have this defined as the body of an outgoing email in Switch v13 (and it works):
*********************
File: [Job.Name]
Pages: [Metadata.Text:Path="/pdfattrs/@pages",Dataset="Preflight",Model="XML"]
Colors: [Metadata.Text:Path="/pdfattrs/colors/color[1]/@base",Dataset="Preflight",Model="XML"]
Trim Box: [Switch.Calculation:Expression="[Stats.TrimBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.TrimBoxHeight]/72"]
Bleed Box: [Switch.Calculation:Expression="[Stats.BleedBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.BleedBoxHeight]/72"]
Media Box: [Switch.Calculation:Expression="[Stats.MediaBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.MediaBoxHeight]/72"]
Art Box: [Switch.Calculation:Expression="[Stats.ArtBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.ArtBoxHeight]/72"]
************************
Trying to use "Precision" to tame the number length. Changing just this one item (though I want to trim all 4 boxes) to this:
Trim Box: [Switch.Calculation:Expression="[Stats.TrimBoxWidth]/72", Precision="4"] X [Switch.Calculation:Expression="[Stats.TrimBoxHeight]/72", Precision="4"]
****************************
Results in this within the received email:
****************************
File: [Job.Name]
Pages: [Metadata.Text:Path="/pdfattrs/@pages",Dataset="Preflight",Model="XML"]
Colors: [Metadata.Text:Path="/pdfattrs/colors/color[1]/@base",Dataset="Preflight",Model="XML"]
Trim Box: [Switch.Calculation:Expression="[Stats.TrimBoxWidth]/72", Precision="4"] X [Switch.Calculation:Expression="[Stats.TrimBoxHeight]/72", Precision="4"]
Bleed Box: [Switch.Calculation:Expression="[Stats.BleedBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.BleedBoxHeight]/72"]
Media Box: [Switch.Calculation:Expression="[Stats.MediaBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.MediaBoxHeight]/72"]
Art Box: [Switch.Calculation:Expression="[Stats.ArtBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.ArtBoxHeight]/72"]
*********************
File: [Job.Name]
Pages: [Metadata.Text:Path="/pdfattrs/@pages",Dataset="Preflight",Model="XML"]
Colors: [Metadata.Text:Path="/pdfattrs/colors/color[1]/@base",Dataset="Preflight",Model="XML"]
Trim Box: [Switch.Calculation:Expression="[Stats.TrimBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.TrimBoxHeight]/72"]
Bleed Box: [Switch.Calculation:Expression="[Stats.BleedBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.BleedBoxHeight]/72"]
Media Box: [Switch.Calculation:Expression="[Stats.MediaBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.MediaBoxHeight]/72"]
Art Box: [Switch.Calculation:Expression="[Stats.ArtBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.ArtBoxHeight]/72"]
************************
Trying to use "Precision" to tame the number length. Changing just this one item (though I want to trim all 4 boxes) to this:
Trim Box: [Switch.Calculation:Expression="[Stats.TrimBoxWidth]/72", Precision="4"] X [Switch.Calculation:Expression="[Stats.TrimBoxHeight]/72", Precision="4"]
****************************
Results in this within the received email:
****************************
File: [Job.Name]
Pages: [Metadata.Text:Path="/pdfattrs/@pages",Dataset="Preflight",Model="XML"]
Colors: [Metadata.Text:Path="/pdfattrs/colors/color[1]/@base",Dataset="Preflight",Model="XML"]
Trim Box: [Switch.Calculation:Expression="[Stats.TrimBoxWidth]/72", Precision="4"] X [Switch.Calculation:Expression="[Stats.TrimBoxHeight]/72", Precision="4"]
Bleed Box: [Switch.Calculation:Expression="[Stats.BleedBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.BleedBoxHeight]/72"]
Media Box: [Switch.Calculation:Expression="[Stats.MediaBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.MediaBoxHeight]/72"]
Art Box: [Switch.Calculation:Expression="[Stats.ArtBoxWidth]/72"] X [Switch.Calculation:Expression="[Stats.ArtBoxHeight]/72"]