> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# サンプル 3. ステップ 1: 事前設定

> 請求書の sample プロジェクトを準備します。ABBYY FlexiLayout Studio で Sample3 を作成し、テスト画像を追加して、FlexiLayout の pre-recognition 設定を行います。

1. 新しいフォルダーを作成し、**Invoices One-Page** という名前を付けます。

2. ABBYY FlexiLayout Studio を起動します。

3. 新しいプロジェクトを作成し、**Sample3** という名前を付けます。詳細は [チュートリアル 1、ステップ 1](/ja/flexi-capture/fls/tutorial/step1) を参照してください。

4. バッチに画像を追加します。詳細は [チュートリアル 1、ステップ 2](/ja/flexi-capture/fls/tutorial/step2) を参照してください。

   <Info>
     チュートリアル 3 のテスト画像は `%public%\ABBYY\FlexiCapture\12.0\Samples\FLS\English\Invoice One-Page\Invoice One-PageBatch\<page number>\Images\bwPage.frdat` に保存されています。
   </Info>

5. FlexiLayout のプロパティを設定します。詳細は [チュートリアル 1、ステップ 3](/ja/flexi-capture/fls/tutorial/step3) を参照してください。
   * **テキストタイプ** で Typographic を選択します。
   * Text languages で **English** を選択します。なお、プログラムでは複数の言語を指定できます。
   * FlexiLayout に **Invoice** という名前を付けます。
   * Fast pre-recognition モードを選択し、**Minimum number of pages** と **Maximum number of pages** を 1 に設定します。

<Frame>
  <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/tutorial3_1.png?fit=max&auto=format&n=r-nfa7jujx5b9gKX&q=85&s=92184af6d950cb63c9c2cab75f80773a" alt="ABBYY FlexiLayout Studio の Invoices FlexiLayout のプロパティダイアログの General タブのスクリーンショット。Invoices という名前の FlexiLayout が表示され、テキスト言語は English、最小ページ数と最大ページ数は 1 に設定されています。" width="433" height="456" data-path="images/flexi-capture/fls/tutorial3_1.png" />
</Frame>

<Note>
  適切な pre-recognition パラメーターの選択について詳しくは、[チュートリアル 1、ステップ 3](/ja/flexi-capture/fls/tutorial/step3) を参照してください。
</Note>

1 ページの文書では、文書の先頭と末尾を示すために、事前定義された複合 Header 要素と Footer 要素を使用する必要はありません。したがって、FlexiLayout 要素のリストからこれらを削除できます。

<Note>
  文書の先頭と末尾を示すために、FlexiLayout に Header 要素と Footer 要素を追加できます。FlexiLayout のマッチング時に Header 要素も Footer 要素も見つからない場合、プログラムは FlexiLayout で指定された最大ページ数をその文書のページ数として使用します。この文書では、最大ページ数は 1 に設定されています。
</Note>
