Flow based of PDF file size

Post Reply
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Flow based of PDF file size

Post 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
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Flow based of PDF file size

Post 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:

Image
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
freddyp
Advanced member
Posts: 1023
Joined: Thu Feb 09, 2012 3:53 pm

Re: Flow based of PDF file size

Post 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
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Flow based of PDF file size

Post 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.
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
abonsey
Member
Posts: 142
Joined: Fri May 24, 2013 5:10 pm

Re: Flow based of PDF file size

Post by abonsey »

Thanks for all the advice. Couldn't see the JobByteCount for looking!!
All working fine now.
Post Reply