文字の大文字と小文字は検索結果に影響せず、テキストを読みやすくするために使われているだけです。最大エラー数は試行錯誤で決定します。Static Text 要素のパラメーターについて詳しくは、Help/Elements/Element Properties/ Static Text を参照してください。
- InvoiceHeader 要素内に、型 Static Text の要素を作成し、kwDeliveryAddress という名前を付けます。
- Static Text タブをクリックします。
- Search text field に、検索するテキスト “DeliveryAddress” を入力します。
- Max error percentage を 20 に設定します。
- Advanced タブをクリックします。
- Delivery Address field は画像の上 3 分の 1 かつ左 3 分の 1 にあるため、Advanced pre-search relations field で次の追加の検索制約を設定します: Look for the object in the left third of the image. Look for the object in the upper third of the image。FlexiLayout language では次のように指定します。 Above: PageRect.Top + PageRect.Height/3; LeftOf: PageRect.Left + PageRect.Width/3;
- テスト画像を使って FlexiLayout のマッチングを実行し、該当するすべての画像でプログラムが要素を正しく検出することを確認します。
すべてのテスト画像に対して FlexiLayout をマッチングするには、次のショートカットキーを使用できます。
- Batch ウィンドウをアクティブ化します
- Ctrl+A を押してすべてのページを選択します
- Ctrl+E を押して Match FlexiLayout を実行します
