You are viewing limited content. For full access, please sign in.

Question

Question

Conditional Decision based on size of image?

asked on September 28, 2015

If a document is over xxKB can I send a message to an LF user to investigate why?  I don't see where I can choose document size in the condition pane.  

or

Can I limit the size of an image or electronic document from being scanned or saved into Laserfiche.  I can do it from forms upload and web access, not sure about the client?

Thanks!

0 0

Replies

replied on September 28, 2015

There's a Total Document Size property available in the "additional properties" section in Find Entry and Search Repository activities.

3 0
replied on February 11, 2022

This is great, Miruna!  I've added that to a workflow I'm designing to tag documents that need conversion from color to black and white, however, I'm having trouble telling the conditional decision branch to act only on entries larger than a certain size.  What I've run into is the argument builder allows me to pick the Total Document Size token and say "greater than" or "less than" but the spot to put in the number does not let me differential between KB and MB.  Do you know a way to make sure it will be able to tell the difference?

0 0
replied on February 11, 2022

The size you get from Find Entry/Entries and Search Repository is in bytes. So 1KB would be 1024 bytes and 1MB would be 1024*1024 = 1,048,576 bytes. So WF would come back with something like 128466804 for a doc that's 122.5MB. And you'd use bytes to specify a limit. Greater than 120MB would be greater than 120*1048576 bytes (or 125,829,120 bytes).

If you're running a search, then I'd add the desired threshold into the search criteria if possible so you only get the documents you want to deal with instead of checking everything. See this help page for size searches.

1 0
replied on February 11, 2022

Awesome!  Thank you!

0 0
replied on September 28, 2015

I do not believe you could do that without customization.  A few ideas could be

1) Use a custom SDK script to get the image size and then put it to a token.  Then you should be able to use that in your conditions.

2) Use Query Data activity to query the Laserfiche database itself by the Entry ID.  I am pretty sure that you could maybe create a SQL view with Entry ID and the page properties (size).  Get the size and then you can use it in conditions.

Both of these would depend on the volume you do.  Your workflow would have to run on every single document create in the system and depending on the number of them it could get resourse intensive.  

0 0
replied on September 29, 2015

Thanks, I will play with running a scheduled workflow to alert us to large docs.  It would be handy if I could prevent the scan from saving in the repository.  Usually the scan is large do to improper scan settings.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.