Report size of cutting path

Post Reply
LasseThid
Advanced member
Posts: 353
Joined: Tue Mar 03, 2015 2:30 pm
Location: Molndal, Sweden

Report size of cutting path

Post by LasseThid »

Is it possible to somehow show the size of cutting paths when preflighting?
I'm thinking by perhaps adding an action list and then logging the result somehow.
Enfocus Switch, Enfocus PitStop Server, Enfocus PDF Review, HP SmartStream& Kodak Prinergy with RBA
Offset 72x102, Offset Large Format, Digital Large Format and Digital print.
laurentd
Member
Posts: 141
Joined: Wed Mar 13, 2019 2:06 pm

Re: Report size of cutting path

Post by laurentd »

Yes, it is possible, using this PitStop action list:
report size of cutting path 1.png
report size of cutting path 1.png (65.12 KiB) Viewed 5473 times
report size of cutting path 2.png
report size of cutting path 2.png (73.63 KiB) Viewed 5473 times
Laurent De Wilde, Solution Architect @ Enfocus
LasseThid
Advanced member
Posts: 353
Joined: Tue Mar 03, 2015 2:30 pm
Location: Molndal, Sweden

Re: Report size of cutting path

Post by LasseThid »

Thanks Laurent...
I'll give that one a try.

Update: It works somewhat... The only thing is it reports to total length of the cut path, i.e for a circle that is 400 mm in diameter it reports 1256.64 mm. If possible I'd like the width and height reported, ie. 400x400 mm in this case.
Enfocus Switch, Enfocus PitStop Server, Enfocus PDF Review, HP SmartStream& Kodak Prinergy with RBA
Offset 72x102, Offset Large Format, Digital Large Format and Digital print.
laurentd
Member
Posts: 141
Joined: Wed Mar 13, 2019 2:06 pm

Re: Report size of cutting path

Post by laurentd »

If you create an action list with Select spot color + log selection, and generate an XML report, you'll get the bounding box info for that/those object(s):

Code: Select all

    <Warnings>
      <PreflightReportItem ActionID="2079">
        <Message>Cut object(s) found (1x on page 1)</Message>
        <StringContext>
          <BaseString>Cut object(s) found</BaseString>
        </StringContext>
        <Location page="1" minX="-3.126" minY="-2.75" maxX="135.85" maxY="155.322"/>
      </PreflightReportItem>
    </Warnings>
You can then calculate the height and width:

width=[Switch.Calculation:Expression="[Metadata.Rational:Dataset="Log",Model="XML",Path="/EnfocusReport/PreflightReport/Warnings/PreflightReportItem/Location/@maxX",Precision="2"]-([Metadata.Rational:Dataset="Log",Model="XML",Path="/EnfocusReport/PreflightReport/Warnings/PreflightReportItem/Location/@minX",Precision="2"])"]

height=[Switch.Calculation:Expression="[Metadata.Rational:Dataset="Log",Model="XML",Path="/EnfocusReport/PreflightReport/Warnings/PreflightReportItem/Location/@maxY",Precision="2"]-([Metadata.Rational:Dataset="Log",Model="XML",Path="/EnfocusReport/PreflightReport/Warnings/PreflightReportItem/Location/@minY",Precision="2"])"]
Laurent De Wilde, Solution Architect @ Enfocus
Post Reply