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

# Document2

> ABBYY FlexiCapture Web Services API の Document2 データ型：ページ、件数、ステータスフラグ、エラー、優先度を含む拡張Document fields。

<div id="what-it-does">
  ## 説明
</div>

**Document2** データ型は、Documentに関する情報を格納します。標準よりも多くのfieldsを含みます。

<div id="fields">
  ## Fields
</div>

| 名前                    | 型                                                                                  | 説明                                                                                                    |
| --------------------- | ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `Id`                  | `int`                                                                              | Documentの ID。                                                                                         |
| `BatchId`             | `int`                                                                              | バッチの ID。                                                                                              |
| `DocIndex`            | `int`                                                                              | Documentのインデックス。                                                                                      |
| `Pages`               | [Page2](/ja/flexi-capture/api/structures/page2)`[]`                                | Documentに含まれるページのセット。                                                                                 |
| `PageCount`           | `int`                                                                              | Documentに含まれるページ数。                                                                                    |
| `IsProcessed`         | `bool`                                                                             | Documentが処理済みかどうかを示すフラグ。処理済みの場合は `True`、未処理の場合は `False`。                                              |
| `HasProcessingErrors` | `bool`                                                                             | 処理エラーが発生したかどうかを示すフラグ。処理エラーが発生した場合は `True`、発生していない場合は `False`。                                         |
| `HasDocumentErrors`   | `bool`                                                                             | 形式、ルール、アセンブリ エラーなど、Documentにエラーがあるかどうかを示すフラグ。Documentにエラーがある場合は `True`、ない場合は `False`。                 |
| `ErrorText`           | `string`                                                                           | Document処理エラーの説明。Application Server によって自動的に設定されます。                                                   |
| `ExternalId`          | `string`                                                                           | Documentの外部 ID。空のままにすると、Application Server によって自動的に設定され、`Id` と同じ値になります。                               |
| `Properties`          | [RegistrationProperty](/ja/flexi-capture/api/structures/registration-property)`[]` | Documentの登録パラメーターのセット。                                                                                |
| `PropertiesCount`     | `int`                                                                              | 登録パラメーターの数。                                                                                           |
| `Priority`            | `int`                                                                              | Documentの優先度。使用可能な値については、[ProcessingPriority](/ja/flexi-capture/api/structures/t-priority) を参照してください。 |
| `FileVersion`         | `int`                                                                              | サーバー上のDocumentファイルのバージョン。Application Server によって自動的に設定されます。                                           |
| `OwnerId`             | `int`                                                                              | Documentの割り当て先ユーザーまたはグループの ID。                                                                        |
| `StageExternalId`     | `int`                                                                              | タスクが作成される処理ステージの ID。                                                                                  |
| `TaskId`              | `int`                                                                              | Documentが属するタスクの ID。                                                                                  |
| `UncertainSymbols`    | `int`                                                                              | 不確実な文字の数。                                                                                             |
| `VerificationSymbols` | `int`                                                                              | 検証済み文字の数。                                                                                             |
| `TotalSymbols`        | `int`                                                                              | 文字の総数。                                                                                                |
| `HasErrors`           | `bool`                                                                             | Documentエラー。Documentにエラーがある場合は `True`、ない場合は `False`。                                                  |
| `HasWarnings`         | `bool`                                                                             | Documentの警告。Documentに警告がある場合は `True`、ない場合は `False`。                                                   |
| `HasAssemblingErrors` | `bool`                                                                             | Document アセンブリ エラー。Documentにアセンブリ エラーがある場合は `True`、ない場合は `False`。                                     |
| `HasAttachments`      | `bool`                                                                             | Documentに添付ファイルがあるかどうかを示すフラグ。                                                                         |
| `Flags`               | `int`                                                                              | Documentのステータスを示すフラグのセット。この値は、この表の後に記載されているフラグを組み合わせたものです。                                            |

<div id="flags-field-values">
  ### Flags fieldの値
</div>

`Flags`値は、以下のフラグを組み合わせたものです。タスクおよび[Web Services API methods](/ja/flexi-capture/api/methods/methods)で使用するフラグのみを示します。

| Flag                                    | Value       | 意味                                                                 |
| --------------------------------------- | ----------- | ------------------------------------------------------------------ |
| `BIF_IsAnalyzed`                        | `0x100`     | Documentが解析されています。                                                 |
| `BIF_IsRecognized`                      | `0x200`     | Documentが認識されています。                                                 |
| `BIF_IsVerified`                        | `0x400`     | Documentは検証済みです。                                                   |
| `BIF_IsExported`                        | `0x800`     | Documentはエクスポート済みです。                                               |
| `BIF_HasRuleErrors`                     | `0x10000`   | Documentにルール実行エラーが含まれています。                                         |
| `BIF_HasRuleWarnings`                   | `0x20000`   | Documentにルール実行時の警告が含まれています。                                        |
| `BIF_HasMergeVersionErrors`             | `0x80000`   | Documentにdouble verificationの結果をマージした際のエラーが含まれています (検証結果が一致しません) 。 |
| `BIF_HasUserAttachments`                | `0x100000`  | Documentに添付ファイルがあります。                                              |
| `BIF_HasUnmatchedFieldErrors`           | `0x200000`  | Documentに未照合のfieldsが含まれています。                                       |
| `BIF_NeedsPreprocessing`                | `0x800000`  | Documentには前処理が必要です。                                                |
| `BIF_IsManuallyCreated`                 | `0x1000000` | Documentは手動で作成されました。                                               |
| `BIF_IsExcludedFromAutomaticAssembling` | `0x2000000` | Documentは自動アセンブリから除外されています。                                        |
| `BIF_IsSourceImageAttached`             | `0x4000000` | 元の画像ファイルがDocumentにアタッチされています。                                      |
