Page 1 of 1
Flow based of PDF file size
Posted: Mon Feb 23, 2015 10:25 am
by abonsey
When a PDF arrives in the input folder I want to flow the PDF based on its file size ie less than 10mb.
How do I do this? I see you can use calculation for a exact size but I want it based on <10mb.
Thanks for any help
Re: Flow based of PDF file size
Posted: Mon Feb 23, 2015 10:26 am
by gabrielp
pietdepauw wrote:When a PDF arrives in the input folder I want to flow the PDF based on its file size ie less than 10mb.
How do I do this? I see you can use calculation for a exact size but I want it based on <10mb.
Thanks for any help
Set up your "include these jobs" criteria something like this:

Re: Flow based of PDF file size
Posted: Mon Feb 23, 2015 10:26 am
by freddyp
There is no need to do a Switch.Calculation on [Job.ByteCount]. You can use it on its own in the left-hand side of the condition combined with "Less than - 10485760".
The alternative with a calculation would look like this:
[Switch.Calculation:Expression="([Job.ByteCount]/1024)/1024"] - Less than - 10
Freddy
Re: Flow based of PDF file size
Posted: Mon Feb 23, 2015 10:27 am
by gabrielp
pietdepauw wrote:There is no need to do a Switch.Calculation on [Job.ByteCount]. You can use it on its own in the left-hand side of the condition combined with "Less than - 10485760".
Ah I see. I've seen that without the calculation sometimes number values do not show the less than or more than comparisons. Maybe that was fixed in an update.
Re: Flow based of PDF file size
Posted: Mon Feb 23, 2015 10:27 am
by abonsey
Thanks for all the advice. Couldn't see the JobByteCount for looking!!
All working fine now.