How to inflate/expand block in the FlexiLayout Studio?

Question

How to inflate block in the FlexiLayout Studio?

Answer

It is possible to inflate the region of the element within the block. To do so, use Expression in the block properties:

mceclip0.png

The full path of the element could be found in the properties of the element:

mceclip1.png

Expression sample:

Rect outputRect;
outputRect = SearchElements.Invnum.Rect;
outputRect.Inflate(10dt, 10dt);
OutputRegion = outputRect;

Results:

mceclip0.png

Have more questions? Submit a request

Comments

2 comments

  • Avatar

    Jörg Loring

    If no zone could be determined by the searchelement, this method apparently results in a mini zone appearing at position 0,0 with the dimensions 10,10 during document extraction. How can this be avoided? Not setting OutputRegion under certain conditions, e.g. if the region was not found, leads to an error in the FlexiLayout. Does anyone have an idea?

    0
  • Avatar

    Dmytro Bezus

    Hello Jörg,

    With the following condition, you may define block region if it wasn't found:

    // example
    Rect outputRect;
    if not( SearchElements.StaticText.IsFound) then {
    outputRect = Rect( 0mm, 0mm, 0mm, 0mm );
    }
    else{
    outputRect = SearchElements.StaticText.Rect;
    outputRect.Inflate(10dt,10dt);
    }
    OutputRegion = outputRect;

    In addition, you may find more samples in the public user folder:

    %public%\ABBYY\FlexiCapture\12.0\Samples\FLS\Tips and Tricks

    https://help.abbyy.com/en-us/flexicapture/12/flexilayout_studio/general/

    Kind Regards,

    Dmytro

    0

Please sign in to leave a comment.