Calculate media usage

Post Reply
User avatar
Terkelsen
Member
Posts: 170
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Calculate media usage

Post by Terkelsen » 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).

Padawan
Member
Posts: 121
Joined: Mon Jun 12, 2017 8:48 pm

Re: Calculate media usage

Post by Padawan » Thu Jun 14, 2018 10:10 am

I believe this should be possible via scripting, I don't think it is possible without.

User avatar
Terkelsen
Member
Posts: 170
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: Calculate media usage

Post by Terkelsen » Thu Jun 14, 2018 10:42 am

Thanks Padawan. I'll try to post the same question in the scripting section.

ldewilde
Newbie
Posts: 4
Joined: Fri Feb 12, 2016 5:38 pm

Re: Calculate media usage

Post by ldewilde » Thu Jun 14, 2018 11:53 am

Hello Terkelsen,

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

Post Reply