Calculate media usage
Posted: Tue Jun 12, 2018 11:37 am
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).
[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).