Page 1 of 1

Calculate media usage

Posted: Thu Jun 14, 2018 10:43 am
by Terkelsen
I'm trying to calculate the total media usage for several PDF-files. I'm using the calculation feature to calculate the total area of a single PDF (with multiple pages). I do that this way:

[Switch.Calculation:Expression="([Stats.MediaBoxHeight:Type="Defined"]*0.035278)*([Stats.MediaBoxWidth:Type="Defined"]*0.035278)*[Stats.NumberOfPages]",Precision="2"]

This returns the result in square centimeters. I store the result in Private Data. Is there any way to calculate the sum of this number for all PDF's contained in a folder (apart from merging the files before doing the calculation).

Re: Calculate media usage

Posted: Thu Jun 14, 2018 11:54 am
by ldewilde
Hello Terkelsen,

There is a new Counter app that does the job:
https://www.enfocus.com/en/appstore/product/counter

Re: Calculate media usage

Posted: Fri Jun 15, 2018 11:47 am
by Terkelsen
That's great Laurent!

However, there seems to be a problem for Switch to accept the value calculated for Surface counter. I've send you an e-mail on support@ezflow.xyz

Re: Calculate media usage

Posted: Mon Jun 18, 2018 7:05 pm
by ezFlow
Hi Erik,

The bug with the decimal values has been fixed.
The v2 of the app is available in the appstore, be sure to update!
https://www.enfocus.com/en/appstore/product/counter