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

# ページ要素

> Vantage OCR XML 出力におけるページ要素は、認識されたページを記述します。これは、元の画像または前処理済み画像を基準とする座標を持つ ブロック タグの並びです。

認識されたページを表します。これは **ブロック** タグの並びです。

<Info>
  Document を XML のみにエクスポートし、いずれの画像形式にもエクスポートしない場合、座標は元の画像を基準に指定されます。Document を XML と同時にいずれかの画像形式にもエクスポートする場合、座標はエクスポートされる前処理済み画像を基準に指定されます。
</Info>

タグには次の属性を指定できます。

| Property         | Data type | Description                                                                                                               |
| :--------------- | :-------- | :------------------------------------------------------------------------------------------------------------------------ |
| `width` \*       | `integer` | 画像の幅 (ピクセル単位) 。                                                                                                           |
| `height` \*      | `integer` | 画像の高さ (ピクセル単位) 。                                                                                                          |
| `resolution` \*  | `integer` | 画像の解像度 (1 インチあたりのピクセル数) 。                                                                                                 |
| `originalCoords` | `boolean` | 値が `true` の場合、座標は元の画像を基準に指定されます。値が `false` の場合、座標は前処理済み画像を基準に指定されます。                                                      |
| `rotation`       | `string`  | 元のページ画像に適用された回転の種類。取りうる値: `Normal`, `RotatedClockwise`, `RotatedUpsidedown`, `RotatedCounterclockwise`。デフォルト値は Normal です。 |

<div id="block-element">
  ## ブロック要素
</div>

認識されたブロックです。各タグには、画像上でのブロックの領域を指定する **region** 要素が含まれます。

以下の要素には **region** 要素が含まれます。

次の属性があります。

| Property       | Data type | Description                                                                                                                                                                                                                                                                             |
| :------------- | :-------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `blockType` \* | `string`  | ブロックの種類を示します：Text、Table、Picture、Barcode、Separator、SeparatorsBox。 この属性の値によって、タグに含まれる要素が決まります：**text**（blockType 属性が Text の場合にのみ利用可能）、**row**（blockType 属性が Table の場合にのみ利用可能）、**separatorsBox**（blockType 属性が SeparatorsBox の場合にのみ利用可能）、**separator**（blockType 属性が Separator の場合にのみ利用可能） |

<div id="region-element">
  ### Region 要素
</div>

複数の矩形からなるブロック領域。1 つ以上の **rect** 要素を含みます。

<div id="rect-element">
  ### Rect 要素
</div>

ブロック領域を表す Rectangle です。タグには次の属性があります。

| Property | Data type | Description       |
| :------- | :-------- | :---------------- |
| `l` \*   | `integer` | Rectangle の左端の座標。 |
| `t` \*   | `integer` | Rectangle の上端の座標。 |
| `r` \*   | `integer` | Rectangle の右端の座標。 |
| `b` \*   | `integer` | Rectangle の下端の座標。 |

\* は必須プロパティであることを示します。
