> ## 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.

# バッチ構成の変更（ページの追加/ページの削除/Documentの追加/Documentの削除）

> ページやDocumentの追加または削除が行われたときに、FlexiCapture スクリプトでバッチ構成の変更に対応します。たとえば、受信したページ数をカウントできます。

<div id="what-it-does">
  ## その動作
</div>

このイベントのハンドラーは、新しい画像に基づいてバッチ、Document、またはページに対する処理を行う必要がある場合に使用します。たとえば、ページの欠落がないことを確認するために、バッチに追加されたページ数を数えることができます。

<div id="when-it-is-launched">
  ## 起動されるタイミング
</div>

このスクリプトは、ページ (またはDocument) の追加時、またはそれらの削除前に起動されます。

<Note>
  Documentを削除しても、Documentページの削除イベントは発生しません。
</Note>

<div id="parameters">
  ## パラメーター
</div>

<table width="100%">
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        <p>
          <strong>名前</strong>
        </p>
      </th>

      <th style={{ textAlign: "left" }}>
        <p>
          <strong>型</strong>
        </p>
      </th>

      <th style={{ textAlign: "left" }}>
        <p>
          <strong>アクセス</strong>
        </p>
      </th>

      <th style={{ textAlign: "left" }}>
        <p>
          <strong>説明</strong>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <p>Batch</p>
      </td>

      <td>
        <p>
          <a href="/ja/flexi-capture/appendix/scripts/ibatch">IBatch</a>
        </p>
      </td>

      <td>
        <p>バッチ内のDocumentおよびページの内部フィールドにはアクセスできません<a href="/ja/flexi-capture/appendix/scripts/batchcontents-modify#asterisk">\*</a></p>
      </td>

      <td>
        <p>操作対象のバッチ</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>Document (or Page)</p>
      </td>

      <td>
        <p>
          <a href="/ja/flexi-capture/appendix/scripts/idocument">IDocument</a> (or <a href="/ja/flexi-capture/appendix/scripts/ipage">IPage</a>)
        </p>
      </td>

      <td>
        <p>変更されたDocument (またはページ) のExternal fieldsは変更できます。</p>
        <p>削除されたDocument (またはページ) およびバッチ内の他のDocumentとページへのアクセスは読み取り専用です。</p>
      </td>

      <td>
        <p>削除 (または追加) されるアイテム。</p>
      </td>
    </tr>
  </tbody>
</table>

<a id="asterisk" />\* - 内部フィールドにアクセスするには、オブジェクトをメモリにロードする必要があります。
