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

# PlainText オブジェクト（IPlainText インターフェイス）

> ABBYY FineReader Engine API の PlainText オブジェクト（IPlainText インターフェイス）— 文字ごとの信頼度と元の画像上での位置を含む、フラットな「プレーンテキスト」形式で認識されたテキストを提供します。バーコードのテキストは、代わりに BarcodeBlock.Text で公開されます。

このオブジェクトは、特殊な「プレーンテキスト」形式の認識されたテキストを表します。認識されたテキスト記号、それらの認識信頼度、および元の画像に対する相対的な位置に関する情報のみを提供します。この情報は、単一の文字についても、テキスト内のすべての文字についても取得できます。

<Note>
  バーコード認識の場合、PlainText オブジェクトの Text プロパティは空になります。単一のバーコードを含む 1 ページの文書から認識されたテキストを取得する必要がある場合は、レイアウト内の最初のブロックの Text プロパティを使用してください。
</Note>

```
document.Pages[0].Layout.Blocks[0].GetAsBarcodeBlock().Text
```

<div id="properties">
  ## プロパティ
</div>

<table>
  <thead>
    <tr>
      <th>
        <p>
          <strong>名前</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>型</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>説明</strong>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <p>
          <strong>Application</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/engine-object-iengine-interface">
              Engine
            </a>
          </strong>

          ,{" "}

          <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties">
            read-only
          </a>
        </p>
      </td>

      <td>
        <p>
          <strong>Engine</strong> オブジェクトを返します。
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="3">
        <p>
          <em>主な属性</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="text" />

          <strong>Text</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              BSTR
            </a>
          </strong>

          , read-only
        </p>
      </td>

      <td>
        <p>
          認識されたテキスト全体に Unicode 文字列の形式でアクセスできます。この文字列には、以下の特殊文字が含まれる場合があります。
        </p>

        <ul>
          <li>0x2028 — 改行記号</li>
          <li>0x2029 — 段落区切り記号</li>

          <li>
            0xFFFC — オブジェクト置換文字 (テキスト内に埋め込まれた画像を示す)
          </li>

          <li>0x0009 — タブ</li>

          <li>
            0x005E — サーカムフレックスアクセント (^) 。ABBYY FineReader Engine が認識できない文字の代替として使用される
          </li>

          <li>0x00AC — ソフトハイフン</li>
        </ul>

        <Note>
          画像に表が含まれる場合、表のセル内のテキストは論理的な読み取り順序 (左から右、上から下) で格納されます。
        </Note>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <strong>SymbolsCount</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>

          , read-only
        </p>
      </td>

      <td>
        <p>
          特殊文字を含む、テキスト内の文字数を返します。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/pagenumber-property">
              PageNumber
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>

          , read-only
        </p>
      </td>

      <td>
        <p>
          このプロパティは、認識されたテキスト内の文字のインデックスを入力パラメーターとして受け取ります。指定した文字が存在するページ番号を返します。
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="3">
        <p>
          <em>投票 API</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/charconfidence-property">
              CharConfidence
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>

          , read-only
        </p>
      </td>

      <td>
        <p>
          文字の認識信頼度の値を返します。これは、主要な (選択された) 認識バリアントの信頼度です。
        </p>

        <p>
          信頼度は認識バリアントの精度を推定するものです。一般的な認識品質の指標として解釈すべきではありません。信頼度を安全に使用できる唯一の用途は、同じ文字の認識バリアントを比較することです。認識を行わずにソース PDF ファイルから抽出された文字の信頼度は 55 に設定されます。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/errorprobability-property">
              ErrorProbability
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>

          , read-only
        </p>
      </td>

      <td>
        <p>
          指定した文字が誤って認識された推定確率 (0 ～ 100 の範囲) を返します。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/issuspicious-property">
              IsSuspicious
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>

          , read-only
        </p>
      </td>

      <td>
        <p>
          指定した文字が信頼性の低い状態で認識された場合に TRUE を返します。検証が必要かどうかを判断するには、このプロパティを使用してください。
        </p>

        <p>
          このプロパティは、<strong>ErrorProbability</strong> の値と認識設定に基づいて計算されます。検証においてより細かい区別を実装する必要がある場合は、代わりに <strong>ErrorProbability</strong> を使用してください。
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="3">
        <p>
          <em>文字座標</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/bottom-property">
              Bottom
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>

          , read-only
        </p>
      </td>

      <td>
        <p>
          このプロパティは、認識されたテキスト内の文字のインデックスを入力パラメーターとして受け取ります。傾き補正済みの{" "}

          <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-images#black-and-white">
            白黒
          </a>

          {" "}

          ソース画像の平面。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/left-property">
              Left
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>

          、読み取り専用
        </p>
      </td>

      <td>
        <p>
          このプロパティは、認識されたテキスト内の記号のインデックスを入力パラメーターとして受け取ります。ソース画像のデスキュー済み{" "}

          <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-images#black-and-white">
            白黒
          </a>

          {" "}

          平面を基準とした、文字の Rectangle の左端の座標を返します。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/right-property">
              Right
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>

          、読み取り専用
        </p>
      </td>

      <td>
        <p>
          このプロパティは、認識されたテキスト内の記号のインデックスを入力パラメーターとして受け取ります。ソース画像のデスキュー済み{" "}

          <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-images#black-and-white">
            白黒
          </a>

          {" "}

          平面を基準とした、記号の Rectangle の右端の座標を返します。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/top-property">
              Top
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              int
            </a>
          </strong>

          、読み取り専用
        </p>
      </td>

      <td>
        <p>
          このプロパティは、認識されたテキスト内の記号のインデックスを入力パラメーターとして受け取ります。ソース画像のデスキュー済み{" "}

          <a href="/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-images#black-and-white">
            白黒
          </a>

          {" "}

          平面を基準とした、記号の Rectangle の上端の座標を返します。
        </p>
      </td>
    </tr>
  </tbody>
</table>

<div id="methods">
  ## メソッド
</div>

| 名前                                                                                                                                                | 説明                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [GetCharacterData](/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/getcharacterdata-method) <br /><br /> **注:** *Windows のみ。* | テキスト内のすべての文字に関する情報を、文字が存在するページ番号、文字の Rectangle の座標、各文字の信頼度を含む配列セットとして返します。 |
| [SaveToAsciiXMLFile](/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/savetoasciixmlfile-method)                               | 認識されたテキストを XML ファイルに保存します。                                                 |
| [SaveToTextFile](/ja/fine-reader/engine/api-reference/text-related-objects/plaintext/savetotextfile-method)                                       | 認識されたテキストを、指定したエンコーディングのテキストファイルに保存します。                                    |

<div id="related-objects">
  ## 関連するオブジェクト
</div>

<img src="https://mintcdn.com/abbyy/i-EfCQVmseNiPQcp/images/fine-reader/engine/plaintext.gif?s=b4691898afced59151dd2db04876a764" alt="PlainText" width="231" height="54" data-path="images/fine-reader/engine/plaintext.gif" />[](/ja/fine-reader/engine/api-reference/document-related-objects/frpage)[](/ja/fine-reader/engine/api-reference/document-related-objects/frdocument)

[オブジェクト図](/ja/fine-reader/engine/api-reference/object-diagram)

<div id="see-also">
  ## 関連項目
</div>

[CharConfidence、ErrorProbability、IsSuspicious の違いは何ですか？](/ja/fine-reader/engine/frequently-asked-questions#suspicious)

[Text の操作](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-text)

[プロパティ の操作](/ja/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)
