PDFium Component Docs

Character プロパティ

この API エントリでは識別子、シグネチャ、コードブロック、PDF 用語を元の表記のまま保持します。
コンポーネント: TPdf  ·  ユニット: PDFium
Read-only indexed access to the UTF-16 string form of the character at the given index (typically one code unit, but two for a surrogate pair).

構文

property Character[CharIndex: Integer]: WString; // read only

説明

Indexed read-only access to the UTF-16 string form of the character at the given index (typically one code unit, but two for a surrogate pair). The valid range is 0 .. CharacterCount - 1 現在ページに対するものです。範囲外のインデックスを渡すと EPdfError.

Characters are returned in their logical reading order — the order in which PDFium parsed the content stream — not necessarily in visual order (right-to-left scripts may appear reversed).

すべての座標は PDF ユーザースペースのポイントで、原点は左下です。次を使って PdfView1.PointsToScreen or your own coordinate transform when overlaying on a VCL canvas.

パラメータ

CharIndexZero-based character index in the current page (0 .. CharacterCount - 1).

備考

var
  I: Integer;
begin
  for I := 0 to Pdf1.CharacterCount - 1 do
    Memo1.Text := Memo1.Text + Pdf1.Character[I];
end;

関連項目

CharacterCount, Charcode, CharacterRectangle, TextPage